|
ManifestDescriptionCreates a manifest file. This task can be used to write a Manifest file, optionally replacing or updating an existing file. Manifests are processed according to the Jar file specification.. Specifically, a manifest element consists of a set of attributes and sections. These sections in turn may contain attributes. Note in particular that this may result in manifest lines greater than 72 bytes being wrapped and continued on the next line. Parameters
Nested elementsattributeOne attribute for the manifest file. Those attributes that are not nested into a section will be added to the "Main" section.
sectionA manifest section - you can nest attribute elements into sections.
Examples<manifest file="MANIFEST.MF"> <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"> <attribute name="Sealed" value="false"/> </section> </manifest> Creates or replaces the file MANIFEST.MF. Note that the Built-By
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
package
version identification for the package The manifest produced by the above would look like this:
Copyright © 2001-2002 Apache Software Foundation. All rights Reserved. |