bodewig 02/05/21 09:41:26
Modified: docs/manual/OptionalTasks Tag: ANT_15_BRANCH jlink.html
Log:
Show non-deprecated alternative to jlink.
Submitted by: Brian Deitte <[EMAIL PROTECTED]>
Revision Changes Path
No revision
No revision
1.6.2.2 +20 -6 jakarta-ant/docs/manual/OptionalTasks/jlink.html
Index: jlink.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/jlink.html,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -r1.6.2.1 -r1.6.2.2
--- jlink.html 3 May 2002 09:40:31 -0000 1.6.2.1
+++ jlink.html 21 May 2002 16:41:26 -0000 1.6.2.2
@@ -98,9 +98,9 @@
<h3>Examples</h3>
-The following will merge the entries in mergefoo.jar and mergebar.jar
+<p>The following will merge the entries in mergefoo.jar and mergebar.jar
into out.jar.
-mac.jar and pc.jar will be added as single entries to out.jar.
+mac.jar and pc.jar will be added as single entries to out.jar.</p>
<pre>
<jlink compress="false" outfile="out.jar">
<mergefiles>
@@ -114,11 +114,25 @@
</jlink>
</pre>
-Suppose the file foo.jar contains two entries: bar.class and
+<p><b>Non-deprecated alternative to the above:</b></p>
+<pre>
+<jar compress="false" destfile="out.jar">
+ <zipgroupfileset dir="${build.dir}">
+ <include name="mergefoo.jar"/>
+ <include name="mergebar.jar"/>
+ </zipgroupfileset>
+ <fileset dir="${build.dir}">
+ <include name="mac.jar"/>
+ <include name="pc.jar"/>
+ </fileset>
+</jar>
+</pre>
+
+<p>Suppose the file foo.jar contains two entries: bar.class and
barnone/myClass.zip.
Suppose the path for file foo.jar is build/tempbuild/foo.jar. The
following example
-will provide the entry tempbuild/foo.jar in the out.jar.
+will provide the entry tempbuild/foo.jar in the out.jar.</p>
<pre>
<jlink compress="false" outfile="out.jar">
<mergefiles>
@@ -127,8 +141,8 @@
</jlink>
</pre>
-However, the next example would result in two top-level entries in out.jar,
-namely bar.class and barnone/myClass.zip
+<p>However, the next example would result in two top-level entries in
out.jar,
+namely bar.class and barnone/myClass.zip</p>
<pre>
<jlink compress="false" outfile="out.jar">
<mergefiles>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>