| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.ManifestClassPath
ManifestClassPath | public class ManifestClassPath extends Task (Code) | | Converts a Path into a property suitable as a Manifest classpath.
since: Ant 1.7 |
Method Summary | |
public void | addClassPath(Path path) Adds the classpath to convert. | public void | execute() Sets a property, which must not already exist, with a space
separated list of files and directories relative to the jar
file's parent directory. | public void | setJarFile(File jarfile) The JAR file to contain the classpath attribute in its manifest.
Parameters: jarfile - the JAR file. | public void | setMaxParentLevels(int levels) Sets the maximum parent directory levels allowed when computing
a relative path.
Parameters: levels - the max level. | public void | setProperty(String name) Sets the property name to hold the classpath value. |
addClassPath | public void addClassPath(Path path)(Code) | | Adds the classpath to convert.
Parameters: path - the classpath to convert. |
execute | public void execute()(Code) | | Sets a property, which must not already exist, with a space
separated list of files and directories relative to the jar
file's parent directory.
|
setJarFile | public void setJarFile(File jarfile)(Code) | | The JAR file to contain the classpath attribute in its manifest.
Parameters: jarfile - the JAR file. Need not exist yet, but its parentdirectory must exist on the other hand. |
setMaxParentLevels | public void setMaxParentLevels(int levels)(Code) | | Sets the maximum parent directory levels allowed when computing
a relative path.
Parameters: levels - the max level. Defaults to 2. |
setProperty | public void setProperty(String name)(Code) | | Sets the property name to hold the classpath value.
Parameters: name - the property name |
|
|