|
|
@@ -368,22 +368,29 @@ by Java).</p> |
|
|
|
<pre> <jar destfile="test.jar" basedir="."> |
|
|
|
<include name="build"/> |
|
|
|
<manifest> |
|
|
|
<!-- Who is building this jar? --> |
|
|
|
<attribute name="Built-By" value="${user.name}"/> |
|
|
|
<attribute name="Program-Version" value="1.0.0beta2"/> |
|
|
|
<!-- Information about the program itself --> |
|
|
|
<attribute name="Implementation-Vendor" value="ACME inc."/> |
|
|
|
<attribute name="Implementation-Title" value="GreatProduct"/> |
|
|
|
<attribute name="Implementation-Version" value="1.0.0beta2"/> |
|
|
|
<!-- details --> |
|
|
|
<section name="common/class1.class"> |
|
|
|
<attribute name="Sealed" value="false"/> |
|
|
|
</section> |
|
|
|
</manifest> |
|
|
|
</jar></pre> |
|
|
|
<p> |
|
|
|
This is an example of an inline manifest specification. 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: |
|
|
|
This is an example of an inline manifest specification including the version of the build |
|
|
|
program (Implementation-Version). 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> |
|
|
|
<pre><code>Manifest-Version: 1.0 |
|
|
|
Built-By: conor |
|
|
|
Program-Version: 1.0.0beta2 |
|
|
|
Created-By: Apache Ant 1.6.5 |
|
|
|
Implementation-Vendor: ACME inc. |
|
|
|
Implementation-Title: GreatProduct |
|
|
|
Implementation-Version: 1.0.0beta2 |
|
|
|
Created-By: Apache Ant 1.7.0 |
|
|
|
|
|
|
|
Name: common/MyClass.class |
|
|
|
Sealed: false</code></pre> |
|
|
|