| |
|
| java.lang.Object org.apache.tools.ant.taskdefs.Manifest
Manifest | public class Manifest (Code) | | |
Inner Class :public static class Attribute | |
Inner Class :public static class Section | |
ATTRIBUTE_CLASSPATH | final public static String ATTRIBUTE_CLASSPATH(Code) | | The Class-Path Header is special - it can be duplicated
|
ATTRIBUTE_FROM | final public static String ATTRIBUTE_FROM(Code) | | The From Header is disallowed in a Manifest
|
ATTRIBUTE_MANIFEST_VERSION | final public static String ATTRIBUTE_MANIFEST_VERSION(Code) | | The standard manifest version header
|
ATTRIBUTE_NAME | final public static String ATTRIBUTE_NAME(Code) | | The Name Attribute is the first in a named section
|
ATTRIBUTE_SIGNATURE_VERSION | final public static String ATTRIBUTE_SIGNATURE_VERSION(Code) | | The standard Signature Version header
|
DEFAULT_MANIFEST_VERSION | final public static String DEFAULT_MANIFEST_VERSION(Code) | | Default Manifest version if one is not specified
|
EOL | final public static String EOL(Code) | | The End-Of-Line marker in manifests
|
ERROR_FROM_FORBIDDEN | final public static String ERROR_FROM_FORBIDDEN(Code) | | Error for attributes
|
JAR_ENCODING | final public static String JAR_ENCODING(Code) | | Encoding to be used for JAR files.
|
MAX_LINE_LENGTH | final public static int MAX_LINE_LENGTH(Code) | | The max length of a line in a Manifest
|
MAX_SECTION_LENGTH | final public static int MAX_SECTION_LENGTH(Code) | | Max length of a line section which is continued. Need to allow
for the CRLF.
|
Manifest | public Manifest()(Code) | | Construct an empty manifest
|
addConfiguredAttribute | public void addConfiguredAttribute(Attribute attribute) throws ManifestException(Code) | | Add an attribute to the manifest - it is added to the main section.
Parameters: attribute - the attribute to be added. exception: ManifestException - if the attribute is not valid. |
addConfiguredSection | public void addConfiguredSection(Section section) throws ManifestException(Code) | | Add a section to the manifest
Parameters: section - the manifest section to be added exception: ManifestException - if the secti0on is not valid. |
equals | public boolean equals(Object rhs)(Code) | | See Also: java.lang.Object.equals Parameters: rhs - the object to check for equality. true if the version, main and sections are the same. |
getDefaultManifest | public static Manifest getDefaultManifest() throws BuildException(Code) | | Construct a manifest from Ant's default manifest file.
the default manifest. exception: BuildException - if there is a problem loading thedefault manifest |
getMainSection | public Section getMainSection()(Code) | | Get the main section of the manifest
the main section of the manifest |
getManifestVersion | public String getManifestVersion()(Code) | | Get the version of the manifest
the manifest's version string |
getSection | public Section getSection(String name)(Code) | | Get a particular section from the manifest
Parameters: name - the name of the section desired. the specified section or null if that sectiondoes not exist in the manifest |
getSectionNames | public Enumeration getSectionNames()(Code) | | Get the section names in this manifest.
an Enumeration of section names |
getWarnings | public Enumeration getWarnings()(Code) | | Get the warnings for this manifest.
an enumeration of warning strings |
merge | public void merge(Manifest other) throws ManifestException(Code) | | Merge the contents of the given manifest into this manifest
Parameters: other - the Manifest to be merged with this one. throws: ManifestException - if there is a problem merging themanifest according to the Manifest spec. |
merge | public void merge(Manifest other, boolean overwriteMain) throws ManifestException(Code) | | Merge the contents of the given manifest into this manifest
Parameters: other - the Manifest to be merged with this one. Parameters: overwriteMain - whether to overwrite the main sectionof the current manifest throws: ManifestException - if there is a problem merging themanifest according to the Manifest spec. |
toString | public String toString()(Code) | | Convert the manifest to its string representation
a multiline string with the Manifest as itappears in a Manifest file. |
write | public void write(PrintWriter writer) throws IOException(Code) | | Write the manifest out to a print writer.
Parameters: writer - the Writer to which the manifest is written throws: IOException - if the manifest cannot be written |
|
|
|