public class VersionMapper extends Object implements org.apache.tools.ant.util.FileNameMapper, Comparator<String>
| Constructor and Description |
|---|
VersionMapper() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String s1,
String s2) |
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(String s1, String s2)
compare in interface Comparator<String>Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.