| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.PathConvert
PathConvert | public class PathConvert extends Task (Code) | | Converts path and classpath information to a specific target OS
format. The resulting formatted path is placed into the specified property.
since: Ant 1.4 |
Inner Class :public class MapEntry | |
Constructor Summary | |
public | PathConvert() Construct a new instance of the PathConvert task. |
Method Summary | |
public void | add(ResourceCollection rc) Add an arbitrary ResourceCollection. | public void | add(FileNameMapper fileNameMapper) Add a nested filenamemapper. | public void | addMapper(Mapper mapper) Add a mapper to convert the file names. | public MapEntry | createMap() Create a nested MAP element. | public Path | createPath() Create a nested path element. | public void | execute() Do the execution. | public boolean | isReference() Learn whether the refid attribute of this element been set. | public void | setDirSep(String sep) Set the default directory separator string;
defaults to current JVM
java.io.File.separator File.separator . | public void | setPathSep(String sep) Set the default path separator string; defaults to current JVM
java.io.File.pathSeparator File.pathSeparator . | public void | setProperty(String p) Set the name of the property into which the converted path will be placed. | public void | setRefid(Reference r) Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere. | public void | setSetonempty(boolean setonempty) Set whether the specified property will be set if the result
is the empty string. | public void | setTargetos(String target) Set targetos to a platform to one of
"windows", "unix", "netware", or "os/2";
current platform settings are used by default. | public void | setTargetos(TargetOs target) Set targetos to a platform to one of
"windows", "unix", "netware", or "os/2";
current platform settings are used by default. |
PathConvert | public PathConvert()(Code) | | Construct a new instance of the PathConvert task.
|
add | public void add(ResourceCollection rc)(Code) | | Add an arbitrary ResourceCollection.
Parameters: rc - the ResourceCollection to add. since: Ant 1.7 |
add | public void add(FileNameMapper fileNameMapper)(Code) | | Add a nested filenamemapper.
Parameters: fileNameMapper - the mapper to add. since: Ant 1.6.3 |
addMapper | public void addMapper(Mapper mapper)(Code) | | Add a mapper to convert the file names.
Parameters: mapper - a Mapper value. |
createMap | public MapEntry createMap()(Code) | | Create a nested MAP element.
a Map to configure. |
createPath | public Path createPath()(Code) | | Create a nested path element.
a Path to be used by Ant reflection. |
isReference | public boolean isReference()(Code) | | Learn whether the refid attribute of this element been set.
true if refid is valid. |
setDirSep | public void setDirSep(String sep)(Code) | | Set the default directory separator string;
defaults to current JVM
java.io.File.separator File.separator .
Parameters: sep - directory separator string. |
setPathSep | public void setPathSep(String sep)(Code) | | Set the default path separator string; defaults to current JVM
java.io.File.pathSeparator File.pathSeparator .
Parameters: sep - path separator string. |
setProperty | public void setProperty(String p)(Code) | | Set the name of the property into which the converted path will be placed.
Parameters: p - the property name. |
setRefid | public void setRefid(Reference r)(Code) | | Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere.
Parameters: r - the reference to a path, fileset, dirset or filelist. |
setSetonempty | public void setSetonempty(boolean setonempty)(Code) | | Set whether the specified property will be set if the result
is the empty string.
Parameters: setonempty - true or false. since: Ant 1.5 |
setTargetos | public void setTargetos(TargetOs target)(Code) | | Set targetos to a platform to one of
"windows", "unix", "netware", or "os/2";
current platform settings are used by default.
Parameters: target - the target os since: Ant 1.5 |
|
|