Package org.apache.tools.ant.taskdefs
Class PathConvert.MapEntry
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.PathConvert.MapEntry
 
- 
- Enclosing class:
- PathConvert
 
 public class PathConvert.MapEntry extends java.lang.ObjectHelper 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.
- 
- 
Constructor SummaryConstructors Constructor Description MapEntry()
 - 
Method SummaryModifier and Type Method Description java.lang.Stringapply(java.lang.String elem)Apply this map entry to a given path element.voidsetFrom(java.lang.String from)Set the "from" attribute of the map entry.voidsetTo(java.lang.String to)Set the replacement text to use when from is matched; required.
 
- 
- 
- 
Method Detail- 
setFrompublic void setFrom(java.lang.String from) Set the "from" attribute of the map entry.- Parameters:
- 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.
 
 - 
setTopublic void setTo(java.lang.String to) Set the replacement text to use when from is matched; required.- Parameters:
- to- new prefix.
 
 - 
applypublic java.lang.String apply(java.lang.String elem) Apply this map entry to a given path element.- Parameters:
- elem- Path element to process.
- Returns:
- String Updated path element after mapping.
 
 
- 
 
-