| Modifier and Type | Class and Description |
|---|---|
| public class | PathConvert.MapEntry
Helper class, holds the nested <map> values. |
| private abstract class | |
| public static class | PathConvert.TargetOs
An enumeration of supported targets: "windows", "unix", "netware", and "os/2". |
| Modifier and Type | Field and Description |
|---|---|
| private Resource | |
| private String | dirSep
User override on directory sep char |
| private Mapper | mapper
Filename mapper |
| private static boolean | onWindows
Set if we're running on windows |
| private Resources | path
Path to be converted |
| private String | pathSep
User override on path sep char |
| private List | prefixMap
Path prefix map |
| private boolean | |
| private String | property
The property to receive the conversion |
| private Reference | refid
Reference to path/fileset to convert |
| private boolean | setonempty
Set if we should create a new property even if the result is empty |
| private String | targetOS
The target OS type |
| private boolean | targetWindows
Set when targetOS is set to windows |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public PathConvert. | |
| private PathConvert. | |
| public Path | |
| public void | |
| private synchronized Resources | |
| public boolean | |
| public boolean | Returns: true if refid is valid.Learn whether the refid attribute of this element been set. |
| private String | Returns: String Updated element.The path element to apply the map to. elem)Apply the configured map to a path element. |
| private BuildException | Returns: BuildException.Creates an exception that indicates that this XML element must not have child elements if the refid attribute is set. |
| public void | |
| public void | setDirSep(String
directory separator string. sep)Set the default directory separator string;
defaults to current JVM |
| public void | setPathSep(String
path separator string. sep)Set the default path separator string; defaults to current JVM
|
| public void | |
| public void | setProperty(String
the property name. p)Set the name of the property into which the converted path will be placed. |
| public void | |
| public void | setSetonempty(boolean
true or false. setonempty)Set whether the specified property will be set if the result is the empty string. |
| public void | setTargetos(String
the target os. 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.
the target os targetSet targetos to a platform to one of "windows", "unix", "netware", or "os/2"; current platform settings are used by default. |
| private Stream | |
| private void |
| dest | back to summary |
|---|---|
| private Resource dest Destination | |
| dirSep | back to summary |
|---|---|
| private String dirSep User override on directory sep char | |
| mapper | back to summary |
|---|---|
| private Mapper mapper Filename mapper | |
| onWindows | back to summary |
|---|---|
| private static boolean onWindows Set if we're running on windows | |
| path | back to summary |
|---|---|
| private Resources path Path to be converted | |
| pathSep | back to summary |
|---|---|
| private String pathSep User override on path sep char | |
| prefixMap | back to summary |
|---|---|
| private List<PathConvert. Path prefix map | |
| preserveDuplicates | back to summary |
|---|---|
| private boolean preserveDuplicates | |
| property | back to summary |
|---|---|
| private String property The property to receive the conversion | |
| refid | back to summary |
|---|---|
| private Reference refid Reference to path/fileset to convert | |
| setonempty | back to summary |
|---|---|
| private boolean setonempty Set if we should create a new property even if the result is empty | |
| targetOS | back to summary |
|---|---|
| private String targetOS The target OS type | |
| targetWindows | back to summary |
|---|---|
| private boolean targetWindows Set when targetOS is set to windows | |
| PathConvert | back to summary |
|---|---|
| public PathConvert() | |
| add | back to summary |
|---|---|
| public void add(ResourceCollection rc) Add an arbitrary ResourceCollection.
| |
| add | back to summary |
|---|---|
| public void add(FileNameMapper fileNameMapper) Add a nested filenamemapper.
| |
| addMapper | back to summary |
|---|---|
| public void addMapper(Mapper mapper) Add a mapper to convert the file names.
| |
| createMap | back to summary |
|---|---|
| public PathConvert. Create a nested MAP element.
| |
| createOutput | back to summary |
|---|---|
private PathConvert.
| |
| createPath | back to summary |
|---|---|
| public Path createPath() Create a nested path element.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Do the execution.
| |
| getPath | back to summary |
|---|---|
| private synchronized Resources getPath() | |
| isPreserveDuplicates | back to summary |
|---|---|
| public boolean isPreserveDuplicates() Get the preserveDuplicates.
| |
| isReference | back to summary |
|---|---|
| public boolean isReference() Learn whether the refid attribute of this element been set.
| |
| mapElement | back to summary |
|---|---|
| private String mapElement(String elem) Apply the configured map to a path element. The map is used to convert between Windows drive letters and Unix paths. If no map is configured, then the input string is returned unchanged. | |
| noChildrenAllowed | back to summary |
|---|---|
| private BuildException noChildrenAllowed() Creates an exception that indicates that this XML element must not have child elements if the refid attribute is set.
| |
| setDest | back to summary |
|---|---|
| public void setDest(Resource dest) Set destination resource.
| |
| setDirSep | back to summary |
|---|---|
| public void setDirSep(String sep) Set the default directory separator string;
defaults to current JVM
| |
| setPathSep | back to summary |
|---|---|
| public void setPathSep(String sep) Set the default path separator string; defaults to current JVM
| |
| setPreserveDuplicates | back to summary |
|---|---|
| public void setPreserveDuplicates(boolean preserveDuplicates) Set the preserveDuplicates.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String p) Set the name of the property into which the converted path will be placed.
| |
| setRefid | back to summary |
|---|---|
| public void setRefid(Reference r) Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere.
| |
| setSetonempty | back to summary |
|---|---|
| public void setSetonempty(boolean setonempty) Set whether the specified property will be set if the result is the empty string.
| |
| setTargetos | back to summary |
|---|---|
| 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.
| |
| setTargetos | back to summary |
|---|---|
| public void setTargetos(PathConvert. Set targetos to a platform to one of "windows", "unix", "netware", or "os/2"; current platform settings are used by default.
| |
| streamResources | back to summary |
|---|---|
| private Stream | |
| validateSetup | back to summary |
|---|---|
| private void validateSetup() throws BuildException Validate that all our parameters have been properly initialized.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public void | |
| public void |
| MapEntry | back to summary |
|---|---|
| public MapEntry() | |
| apply | back to summary |
|---|---|
| public String apply(String elem) Apply this map entry to a given path element. | |
| setFrom | back to summary |
|---|---|
| public void setFrom(String from) Set the "from" attribute of the map entry.
| |
| setTo | back to summary |
|---|---|
| public void setTo(String to) Set the replacement text to use when from is matched; required.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(String
the input argument t)Implements java. |
| public void | close()
Implements java. |
| pack-priv abstract void |
| target | back to summary |
|---|---|
| pack-priv final T target | |
| Output | back to summary |
|---|---|
| pack-priv Output(T target) | |
| accept | back to summary |
|---|---|
| public void accept(String t) Implements java. Doc from java. Performs this operation on the given argument. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| doAccept | back to summary |
|---|---|
| pack-priv abstract void doAccept(String t) throws Exception | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: the list of values for this enumerated attribute.Implements abstract org. |
| TargetOs | back to summary |
|---|---|
| public TargetOs() | |
| getValues | back to summary |
|---|---|
| public String[] getValues() Implements abstract org. Doc from org. This is the only method a subclass needs to implement. | |