org.apache.tools.ant.taskdefs
Class PathConvert.MapEntry
java.lang.Object
org.apache.tools.ant.taskdefs.PathConvert.MapEntry
- PathConvert
public class PathConvert.MapEntry
extends java.lang.Object
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.
String | apply(String elem) - Apply this map entry to a given path element
|
void | setFrom(String from) - the prefix string to search for; required.
|
void | setTo(String to) - The replacement text to use when from is matched; required.
|
apply
public String apply(String elem)
Apply this map entry to a given path element
elem
- Path element to process
- String Updated path element after mapping
setFrom
public void setFrom(String from)
the prefix string to search for; required.
Note that this value is case-insensitive when the build is
running on a Windows platform and case-sensitive when running on
a Unix platform.
from
-
setTo
public void setTo(String to)
The replacement text to use when from is matched; required.
to
- new prefix
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.