Class JarLibManifestTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
- All Implemented Interfaces:
- Cloneable
Generates a manifest that declares all the dependencies.
 The dependencies are determined by looking in the
 specified path and searching for Extension / "Optional Package"
 specifications in the manifests of the jars.
 
Prior to JDK1.3, an "Optional Package" was known as an Extension. The specification for this mechanism is available in the JDK1.3 documentation in the directory $JDK_HOME/docs/guide/extensions/versioning.html. Alternatively it is available online at https://docs.oracle.com/javase/8/docs/technotes/guides/extensions/versioning.html.
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddConfiguredAttribute(ExtraAttribute attribute) Adds an attribute that is to be put in main section of manifest.voidaddConfiguredDepends(ExtensionSet extensionSet) Adds a set of extensions that this library requires.voidaddConfiguredExtension(ExtensionAdapter extensionAdapter) Adds an extension that this library implements.voidaddConfiguredOptions(ExtensionSet extensionSet) Adds a set of extensions that this library optionally requires.voidexecute()Execute the task.voidsetDestfile(File destFile) The location where generated manifest is placed.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
JarLibManifestTaskpublic JarLibManifestTask()
 
- 
- 
Method Details- 
setDestfileThe location where generated manifest is placed.- Parameters:
- destFile- The location where generated manifest is placed.
 
- 
addConfiguredExtensionAdds an extension that this library implements.- Parameters:
- extensionAdapter- an extension that this library implements.
- Throws:
- BuildException- if there is multiple extensions detected in the library.
 
- 
addConfiguredDependsAdds a set of extensions that this library requires.- Parameters:
- extensionSet- a set of extensions that this library requires.
 
- 
addConfiguredOptionsAdds a set of extensions that this library optionally requires.- Parameters:
- extensionSet- a set of extensions that this library optionally requires.
 
- 
addConfiguredAttributeAdds an attribute that is to be put in main section of manifest.- Parameters:
- attribute- an attribute that is to be put in main section of manifest.
 
- 
executeExecute the task.- Overrides:
- executein class- Task
- Throws:
- BuildException- if the task fails.
 
 
-