Apache Ant TasksJarlib-manifestjarlib-manifestDescriptionTask to generate a manifest that declares all the dependencies in manifest. The dependencies are determined by looking in the specified path and searching for Extension / "Optional Package" specifications in the manifests of the jars. Note that this taskworks with extensions as defined by the "Optional Package" specification. For more information about optional packages, see the documentOptional Package Versioning in the documentation bundle for yourJava2 Standard Edition package, in fileguide/extensions/versioning.html or online athttp://download.oracle.com/javase/1.3/docs/guide/extensions/versioning.htmlSee the Extension and ExtensionSet documentation for further details Parameters Attribute | Description | Required | destfile | The file to generate Manifest into | Yes. | Parameters specified as nested elementsextension Extension the extension that this library implements. depends ExtensionSets containing all dependencies for jar. options ExtensionSets containing all optional dependencies for jar. (Optional dependencies will be used if present else they will be ignored) ExamplesBasic Manifest generated for single Extension <extension id="e1" extensionName="MyExtensions" specificationVersion="1.0" specificationVendor="Peter Donald" implementationVendorID="vv" implementationVendor="Apache" implementationVersion="2.0" implementationURL="http://somewhere.com"/><jarlib-manifest destfile="myManifest.txt"> <extension refid="e1"/></jarlib-manifest> Search for extension in fileset A large example with required and optional dependencies <extension id="e1" extensionName="MyExtensions" specificationVersion="1.0" specificationVendor="Peter Donald" implementationVendorID="vv" implementationVendor="Apache" implementationVersion="2.0" implementationURL="http://somewhere.com"/><extensionSet id="option.ext"> <libfileset dir="lib/option"> <include name="**/*.jar"/> </libfileset></extensionSet><extensionSet id="depends.ext"> <libfileset dir="lib/required"> <include name="*.jar"/> </libfileset></extensionSet><jarlib-manifest destfile="myManifest.txt"> <extension refid="e1"/> <depends refid="depends.ext"/> <options refid="option.ext"/></jarlib-manifest> |