public class ManifestClassPath extends Task
description, location, project
Constructor and Description |
---|
ManifestClassPath() |
Modifier and Type | Method and Description |
---|---|
void |
addClassPath(Path path)
Adds the classpath to convert.
|
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.
|
void |
setJarFile(java.io.File jarfile)
The JAR file to contain the classpath attribute in its manifest.
|
void |
setMaxParentLevels(int levels)
Sets the maximum parent directory levels allowed when computing
a relative path.
|
void |
setProperty(java.lang.String name)
Sets the property name to hold the classpath value.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public void execute()
public void setProperty(java.lang.String name)
name
- the property namepublic void setJarFile(java.io.File jarfile)
jarfile
- the JAR file. Need not exist yet, but its parent
directory must exist on the other hand.public void setMaxParentLevels(int levels)
levels
- the max level. Defaults to 2.public void addClassPath(Path path)
path
- the classpath to convert.