Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » [javadoc | source]
org.apache.tools.ant.taskdefs
public class: PathConvert [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.PathConvert

All Implemented Interfaces:
    Cloneable

Converts path and classpath information to a specific target OS format. The resulting formatted path is placed into the specified property.
Nested Class Summary:
public class  PathConvert.MapEntry  Helper class, holds the nested <map> values. Elements will look like this: <map from="d:" to="/foo"/> When running on windows, the prefix comparison will be case insensitive. 
public static class  PathConvert.TargetOs  An enumeration of supported targets: "windows", "unix", "netware", and "os/2". 
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Constructor:
 public PathConvert() 
Method from org.apache.tools.ant.taskdefs.PathConvert Summary:
add,   add,   addMapper,   createMap,   createPath,   execute,   isReference,   setDirSep,   setPathSep,   setProperty,   setRefid,   setSetonempty,   setTargetos,   setTargetos
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.PathConvert Detail:
 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 PathConvert.MapEntry createMap() 
    Create a nested MAP element.
 public Path createPath() 
    Create a nested path element.
 public  void execute() throws BuildException 
    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 File.separator .
 public  void setPathSep(String sep) 
 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) 
Deprecated! since - 1.5.x. Use the method taking a TargetOs argument instead.

    Set targetos to a platform to one of "windows", "unix", "netware", or "os/2"; current platform settings are used by default.
 public  void setTargetos(PathConvert.TargetOs target) 
    Set targetos to a platform to one of "windows", "unix", "netware", or "os/2"; current platform settings are used by default.