public class VersionMapper extends Object implements org.apache.tools.ant.util.FileNameMapper, Comparator
| Constructor and Description |
|---|
VersionMapper() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
String[] |
mapFileName(String sourceFileName) |
void |
setFrom(String from)
Set the versions identifiers that this mapper can remove from filenames.
|
void |
setTo(String to)
By default, only filename is changed, but if this attribute is set to
flatten, directory is removed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic String[] mapFileName(String sourceFileName)
mapFileName in interface org.apache.tools.ant.util.FileNameMapperpublic void setFrom(String from)
versionsId property value.setFrom in interface org.apache.tools.ant.util.FileNameMapperpublic void setTo(String to)
flatten, directory is removed.setTo in interface org.apache.tools.ant.util.FileNameMapperpublic int compare(Object o1, Object o2)
compare in interface ComparatorCopyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.