|
@@ -137,21 +137,15 @@ fileset includes a file named <code>MANIFEST.MF</code>, the file is |
|
|
ignored and you will get a warning.</p> |
|
|
ignored and you will get a warning.</p> |
|
|
|
|
|
|
|
|
<h4>Manifest</h4> |
|
|
<h4>Manifest</h4> |
|
|
|
|
|
<p>The manifest nested element allows the manifest for the Jar file to |
|
|
|
|
|
be provided inline in the build file rather than in an external |
|
|
|
|
|
file. This element is identical to the |
|
|
|
|
|
<a href="manifest.html">manifest</a> task, but its file and mode |
|
|
|
|
|
attributes will be ignored.</p> |
|
|
<p> |
|
|
<p> |
|
|
The manifest nested element allows the manifest for the Jar file to be |
|
|
|
|
|
provided inline in the build file rather than in an external file. This |
|
|
|
|
|
makes it easy to produce Jar manifests which take values from Ant properties. |
|
|
|
|
|
If both an inline manifest and an external file are both specified, the |
|
|
If both an inline manifest and an external file are both specified, the |
|
|
manifests are merged. |
|
|
manifests are merged. |
|
|
</p> |
|
|
</p> |
|
|
<p> |
|
|
|
|
|
The manifest element supports nested elements to reflect the structure of |
|
|
|
|
|
manifests, according to the |
|
|
|
|
|
<a href="http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html">Jar file |
|
|
|
|
|
specification</a>. Specifically, a manifest |
|
|
|
|
|
element consists of a set of attributes and sections. These sections in turn |
|
|
|
|
|
may contain attributes. |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<p>When using inline manifests, the Jar task will check whether the build |
|
|
<p>When using inline manifests, the Jar task will check whether the build |
|
|
file is more recent that the Jar file when deciding whether to rebuild the |
|
|
file is more recent that the Jar file when deciding whether to rebuild the |
|
@@ -159,51 +153,6 @@ Jar. This will not take into account property file changes which may affect |
|
|
the resulting Jar. |
|
|
the resulting Jar. |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
<p> The manifest element itself does not support any attributes. It serves |
|
|
|
|
|
merely as a container for the attribute and section elements that make up the |
|
|
|
|
|
manifest. The attributes of those elements are as follows: |
|
|
|
|
|
</p> |
|
|
|
|
|
<p> |
|
|
|
|
|
<b>Section</b> |
|
|
|
|
|
</p> |
|
|
|
|
|
<p> |
|
|
|
|
|
<table border="1" cellpadding="2" cellspacing="0"> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td valign="top"><b>Attribute</b></td> |
|
|
|
|
|
<td valign="top"><b>Description</b></td> |
|
|
|
|
|
<td align="center" valign="top"><b>Required</b></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td valign="top">Name</td> |
|
|
|
|
|
<td valign="top">The name of the section</td> |
|
|
|
|
|
<td valign="top" align="center">Yes</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
<b>Attribute</b> |
|
|
|
|
|
</p> |
|
|
|
|
|
<p> |
|
|
|
|
|
<table border="1" cellpadding="2" cellspacing="0"> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td valign="top"><b>Attribute</b></td> |
|
|
|
|
|
<td valign="top"><b>Description</b></td> |
|
|
|
|
|
<td align="center" valign="top"><b>Required</b></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td valign="top">Name</td> |
|
|
|
|
|
<td valign="top">The name of the attribute</td> |
|
|
|
|
|
<td valign="top" align="center">Yes</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td valign="top">Value</td> |
|
|
|
|
|
<td valign="top">The value of the attribute</td> |
|
|
|
|
|
<td valign="top" align="center">Yes</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<h3>Examples</h3> |
|
|
<h3>Examples</h3> |
|
|
<pre> <jar file="${dist}/lib/app.jar" basedir="${build}/classes"/></pre> |
|
|
<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 |
|
|
<p>jars all files in the <code>${build}/classes</code> directory into a file |
|
|