org.apache.tools.ant.taskdefs
public class ManifestTask extends Task
Since: Ant 1.5
UNKNOWN: category="java"
Nested Class Summary | |
---|---|
static class | ManifestTask.Mode
Helper class for Manifest's mode attribute. |
Constructor Summary | |
---|---|
ManifestTask()
Default constructor |
Method Summary | |
---|---|
void | addConfiguredAttribute(Manifest.Attribute attribute)
Add an attribute to the manifest - it is added to the main section.
|
void | addConfiguredSection(Manifest.Section section)
Add a section to the manifest
|
void | execute()
Create or update the Manifest when used as a task.
|
void | setEncoding(String encoding)
The encoding to use for reading in an existing manifest file |
void | setFile(File f)
The name of the manifest file to create/update.
|
void | setMode(ManifestTask.Mode m)
Update policy: either "update" or "replace"; default is "replace". |
Parameters: attribute the attribute to be added.
Throws: ManifestException if the attribute is not valid.
Parameters: section the manifest section to be added
Throws: ManifestException if the section is not valid.
Throws: BuildException if the manifest cannot be written.
Parameters: encoding the manifest file encoding.
Parameters: f the Manifest file to be written
Parameters: m the mode value - update or replace.