|
|
@@ -463,6 +463,18 @@ and <code>${src}/resources/mypackage/image.gif</code>, they will appear |
|
|
|
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> |
|
|
|