You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2002/01/07 07:21:18 UTC
cvs commit: jakarta-ant/docs/manual/CoreTasks ear.html jar.html war.html zip.html
stevel 02/01/06 22:21:18
Modified: docs/manual/CoreTasks ear.html jar.html war.html zip.html
Log:
Addition of destFile(File) attr to the zip/war/ear/jar tasks, fixup of docs, replacement of deprecation methods and appropriate changes to the tests.
Revision Changes Path
1.10 +3 -3 jakarta-ant/docs/manual/CoreTasks/ear.html
Index: ear.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/ear.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ear.html 11 Dec 2001 14:55:45 -0000 1.9
+++ ear.html 7 Jan 2002 06:21:18 -0000 1.10
@@ -24,8 +24,8 @@
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
- <td valign="top">file</td>
- <td valign="top">the ear-file to create.</td>
+ <td valign="top">destfile</td>
+ <td valign="top">the EAR file to create.</td>
<td valign="top" align="center">Yes</td>
</tr>
<tr>
@@ -107,7 +107,7 @@
ignored and you will get a warning.</p>
<h2>Example</h2>
<pre>
- <ear file="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml">
+ <ear destfile="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml">
<fileset dir="${build.dir}" includes="*.jar,*.war"/>
</ear>
</pre>
1.13 +6 -6 jakarta-ant/docs/manual/CoreTasks/jar.html
Index: jar.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/jar.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- jar.html 12 Dec 2001 11:05:34 -0000 1.12
+++ jar.html 7 Jan 2002 06:21:18 -0000 1.13
@@ -58,8 +58,8 @@
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
- <td valign="top">file</td>
- <td valign="top">the jar-file to create.</td>
+ <td valign="top">destfile</td>
+ <td valign="top">the JAR file to create.</td>
<td valign="top" align="center">Yes</td>
</tr>
<tr>
@@ -157,14 +157,14 @@
<pre> <jar file="${dist}/lib/app.jar" basedir="${build}/classes"/></pre>
<p>jars all files in the <code>${build}/classes</code> directory into a file
called <code>app.jar</code> in the <code>${dist}/lib</code> directory.</p>
-<pre> <jar file="${dist}/lib/app.jar"
+<pre> <jar destfile="${dist}/lib/app.jar"
basedir="${build}/classes"
excludes="**/Test.class"
/></pre>
<p>jars all files in the <code>${build}/classes</code> directory into a file
called <code>app.jar</code> in the <code>${dist}/lib</code> directory. Files
with the name <code>Test.class</code> are excluded.</p>
-<pre> <jar file="${dist}/lib/app.jar"
+<pre> <jar destfile="${dist}/lib/app.jar"
basedir="${build}/classes"
includes="mypackage/test/**"
excludes="**/Test.class"
@@ -173,7 +173,7 @@
called <code>app.jar</code> in the <code>${dist}/lib</code> directory. Only
files under the directory <code>mypackage/test</code> are used, and files with
the name <code>Test.class</code> are excluded.</p>
-<pre> <jar file="${dist}/lib/app.jar">
+<pre> <jar destfile="${dist}/lib/app.jar">
<fileset dir="${build}/classes"
excludes="**/Test.class"
/>
@@ -188,7 +188,7 @@
in the same directory in the JAR (and thus be considered in the same package
by Java).</p>
-<pre> <jar jarfile="test.jar" basedir=".">
+<pre> <jar destfile="test.jar" basedir=".">
<include name="build"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
1.11 +3 -3 jakarta-ant/docs/manual/CoreTasks/war.html
Index: war.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/war.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- war.html 11 Dec 2001 14:55:45 -0000 1.10
+++ war.html 7 Jan 2002 06:21:18 -0000 1.11
@@ -26,8 +26,8 @@
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
- <td valign="top">file</td>
- <td valign="top">the war-file to create.</td>
+ <td valign="top">destfile</td>
+ <td valign="top">the WAR file to create.</td>
<td valign="top" align="center">Yes</td>
</tr>
<tr>
@@ -135,7 +135,7 @@
</pre>
then the war file <code>myapp.war</code> created with
<pre>
-<war file="myapp.war" webxml="src/metadata/myapp.xml">
+<war destfile="myapp.war" webxml="src/metadata/myapp.xml">
<fileset dir="src/html/myapp"/>
<fileset dir="src/jsp/myapp"/>
<lib dir="thirdparty/libs">
1.9 +7 -7 jakarta-ant/docs/manual/CoreTasks/zip.html
Index: zip.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/zip.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- zip.html 30 Oct 2001 10:05:34 -0000 1.8
+++ zip.html 7 Jan 2002 06:21:18 -0000 1.9
@@ -57,7 +57,7 @@
<td valign="top" align="center"><b>Required</b></td>
</tr>
<tr>
- <td valign="top">file</td>
+ <td valign="top">destfile</td>
<td valign="top">the zip-file to create.</td>
<td align="center" valign="top">Yes</td>
</tr>
@@ -142,12 +142,12 @@
for inclusion in the archive.</p>
<h3>Examples</h3>
-<pre> <zip file="${dist}/manual.zip"
+<pre> <zip destfile="${dist}/manual.zip"
basedir="htdocs/manual"
/></pre>
<p>zips all files in the <code>htdocs/manual</code> directory into a file called <code>manual.zip</code>
in the <code>${dist}</code> directory.</p>
-<pre> <zip file="${dist}/manual.zip"
+<pre> <zip destfile="${dist}/manual.zip"
basedir="htdocs/manual"
update="true"
/></pre>
@@ -155,27 +155,27 @@
in the <code>${dist}</code> directory. If <code>manual.zip</code>
doesn't exist, it is created; otherwise it is updated with the
new/changed files.</p>
-<pre> <zip file="${dist}/manual.zip"
+<pre> <zip destfile="${dist}/manual.zip"
basedir="htdocs/manual"
excludes="mydocs/**, **/todo.html"
/></pre>
<p>zips all files in the <code>htdocs/manual</code> directory. Files in the directory <code>mydocs</code>,
or files with the name <code>todo.html</code> are excluded.</p>
-<pre> <zip file="${dist}/manual.zip"
+<pre> <zip destfile="${dist}/manual.zip"
basedir="htdocs/manual"
includes="api/**/*.html"
excludes="**/todo.html"
/></pre>
<p>zips all files in the <code>htdocs/manual</code> directory. Only html files under the directory <code>api</code>
are zipped, and files with the name <code>todo.html</code> are excluded.</p>
-<pre> <zip file="${dist}/manual.zip">
+<pre> <zip destfile="${dist}/manual.zip">
<fileset dir="htdocs/manual"/>
<fileset dir="." includes="ChangeLog.txt"/>
</zip></pre>
<p>zips all files in the <code>htdocs/manual</code> directory, and also adds the file <code>ChangeLog.txt</code> in the
current directory. <code>ChangeLog.txt</code> will be added to the top of the ZIP file, just as if
it had been located at <code>htdocs/manual/ChangeLog.txt</code>.</p>
-<pre> <zip file="${dist}/manual.zip">
+<pre> <zip destfile="${dist}/manual.zip">
<zipfileset dir="htdocs/manual" prefix="docs/user-guide"/>
<zipfileset dir="." includes="ChangeLog27.txt" fullpath="docs/ChangeLog.txt"/>
<zipfileset src="examples.zip" includes="**/*.html" prefix="docs/examples"/>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>