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> <jar destfile="build/main/checksites.jar">
+ <fileset dir="build/main/classes"/>
+ <zipfileset src="lib/main/util.jar">
+ <manifest>
+ <attribute name="Main-Class"
+ value="com.acme.checksites.Main"/>
+ </manifest>
+ </jar></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> <jar destfile="test.jar" basedir=".">
<include name="build"/>
<manifest>