ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r942767 - /ant/core/trunk/docs/manual/CoreTasks/jar.html
Date Mon, 10 May 2010 14:56:31 GMT
Author: peterreilly
Date: Mon May 10 14:56:31 2010
New Revision: 942767

URL: http://svn.apache.org/viewvc?rev=942767&view=rev
Log:
add a new example

Modified:
    ant/core/trunk/docs/manual/CoreTasks/jar.html

Modified: ant/core/trunk/docs/manual/CoreTasks/jar.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/jar.html?rev=942767&r1=942766&r2=942767&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/jar.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/jar.html Mon May 10 14:56:31 2010
@@ -463,6 +463,18 @@ and <code>${src}/resources/mypackage/ima
 in the same directory in the JAR (and thus be considered in the same package
 by Java).</p>
 
+<pre> &lt;jar destfile="build/main/checksites.jar"&gt;
+    &lt;fileset dir="build/main/classes"/&gt;
+    &lt;zipfileset src="lib/main/util.jar"&gt;
+    &lt;manifest&gt;
+      &lt;attribute name="Main-Class"
+            value="com.acme.checksites.Main"/&gt;
+    &lt;/manifest&gt;
+  &lt;/jar&gt;</pre>
+<p>
+  Creates an executable jar file with a main class "com.acme.checksites.Main", and
+  embeds all the classes from util.jar.
+</p>
 <pre>  &lt;jar destfile=&quot;test.jar&quot; basedir=&quot;.&quot;&gt;
     &lt;include name=&quot;build&quot;/&gt;
     &lt;manifest&gt;



Mime
View raw message