Comparator<String>, org.apache.tools.ant.util.FileNameMapperpublic class VersionMapper extends Object implements org.apache.tools.ant.util.FileNameMapper, Comparator<String>
| Constructor | Description |
|---|---|
VersionMapper() |
| Modifier and Type | Method | 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. |
equalspublic 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.FileNameMapperfrom - The string from which we set.public void setTo(String to)
flatten, directory is removed.setTo in interface org.apache.tools.ant.util.FileNameMapperto - topublic int compare(String s1, String s2)
compare in interface Comparator<String>Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.