| Modifier and Type | Field and Description |
|---|---|
| private File | dir
The directory the classpath will be relative from. |
| private int | maxParentLevels
The maximum parent directory level to traverse. |
| private String | name
The property name to hold the classpath value. |
| private Path | path
The classpath to convert. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | execute()
Overrides org. |
| public void | setJarFile(File
the JAR file. Need not exist yet, but its parent
directory must exist on the other hand. jarfile)The JAR file to contain the classpath attribute in its manifest. |
| public void | setMaxParentLevels(int
the max level. Defaults to 2. levels)Sets the maximum parent directory levels allowed when computing a relative path. |
| public void |
| dir | back to summary |
|---|---|
| private File dir The directory the classpath will be relative from. | |
| maxParentLevels | back to summary |
|---|---|
| private int maxParentLevels The maximum parent directory level to traverse. | |
| name | back to summary |
|---|---|
| private String name The property name to hold the classpath value. | |
| path | back to summary |
|---|---|
| private Path path The classpath to convert. | |
| ManifestClassPath | back to summary |
|---|---|
| public ManifestClassPath() | |
| addClassPath | back to summary |
|---|---|
| public void addClassPath(Path path) Adds the classpath to convert.
| |
| execute | back to summary |
|---|---|
| public void execute() Overrides org. 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 | back to summary |
|---|---|
| public void setJarFile(File jarfile) The JAR file to contain the classpath attribute in its manifest.
| |
| setMaxParentLevels | back to summary |
|---|---|
| public void setMaxParentLevels(int levels) Sets the maximum parent directory levels allowed when computing a relative path.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name) Sets the property name to hold the classpath value.
| |