|
@@ -87,6 +87,14 @@ href="#attribute">attribute</a> elements into sections.</p> |
|
|
<pre> |
|
|
<pre> |
|
|
<manifest file="MANIFEST.MF"> |
|
|
<manifest file="MANIFEST.MF"> |
|
|
<attribute name="Built-By" value="${user.name}"/> |
|
|
<attribute name="Built-By" value="${user.name}"/> |
|
|
|
|
|
<section name="common"> |
|
|
|
|
|
<attribute name="Specification-Title" value="Example" /> |
|
|
|
|
|
<attribute name="Specification-Version" value="${version}" /> |
|
|
|
|
|
<attribute name="Specification-Vendor" value="Example Organization" /> |
|
|
|
|
|
<attribute name="Implementation-Title" value="common" /> |
|
|
|
|
|
<attribute name="Implementation-Version" value="${version} ${TODAY}" /> |
|
|
|
|
|
<attribute name="Implementation-Vendor" value="Example Corp." /> |
|
|
|
|
|
</section> |
|
|
<section name="common/class1.class"> |
|
|
<section name="common/class1.class"> |
|
|
<attribute name="Sealed" value="false"/> |
|
|
<attribute name="Sealed" value="false"/> |
|
|
</section> |
|
|
</section> |
|
@@ -94,17 +102,33 @@ href="#attribute">attribute</a> elements into sections.</p> |
|
|
</pre> |
|
|
</pre> |
|
|
|
|
|
|
|
|
<p>Creates or replaces the file MANIFEST.MF. Note that the Built-By |
|
|
<p>Creates or replaces the file MANIFEST.MF. Note that the Built-By |
|
|
attribute will take the value of the Ant property ${user.name}. The |
|
|
|
|
|
manifest produced by the above would look like this: |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
attribute will take the value of the Ant property ${user.name}. The |
|
|
|
|
|
same is true for the ${version} and ${TODAY} properties. This example |
|
|
|
|
|
produces a MANIFEST.MF that contains |
|
|
|
|
|
<a href="http://java.sun.com/products/jdk/1.2/docs/guide/versioning/index.html">package |
|
|
|
|
|
version identification</a> for the package <code>common</code>.</p> |
|
|
|
|
|
|
|
|
|
|
|
<p>The manifest produced by the above would look like this:</p> |
|
|
|
|
|
|
|
|
<pre><code>Manifest-Version: 1.0 |
|
|
<pre><code>Manifest-Version: 1.0 |
|
|
Built-By: bodewig |
|
|
Built-By: bodewig |
|
|
Created-By: Apache Ant 1.5alpha |
|
|
Created-By: Apache Ant 1.5alpha |
|
|
|
|
|
|
|
|
|
|
|
Name: common |
|
|
|
|
|
Specification-Title: Example |
|
|
|
|
|
Specification-Vendor: Example Organization |
|
|
|
|
|
Implementation-Vendor: Example Corp. |
|
|
|
|
|
Specification-Version: 1.1 |
|
|
|
|
|
Implementation-Version: 1.1 February 19 2002 |
|
|
|
|
|
Implementation-Title: common |
|
|
|
|
|
|
|
|
Name: common/class1.class |
|
|
Name: common/class1.class |
|
|
Sealed: false</code></pre> |
|
|
|
|
|
|
|
|
Sealed: false |
|
|
|
|
|
|
|
|
|
|
|
</code></pre> |
|
|
|
|
|
|
|
|
<hr> |
|
|
<hr> |
|
|
<p align="center">Copyright © 2001 Apache Software Foundation. All rights |
|
|
|
|
|
|
|
|
<p align="center">Copyright © 2001-2002 Apache Software Foundation. All rights |
|
|
Reserved.</p> |
|
|
Reserved.</p> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |
|
|