Comparator<String>
, org.apache.tools.ant.util.FileNameMapper
public 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. |
equals
public String[] mapFileName(String sourceFileName)
mapFileName
in interface org.apache.tools.ant.util.FileNameMapper
public void setFrom(String from)
versionsId
property value.setFrom
in interface org.apache.tools.ant.util.FileNameMapper
from
- The string from which we set.public void setTo(String to)
flatten
, directory is removed.setTo
in interface org.apache.tools.ant.util.FileNameMapper
to
- to
public int compare(String s1, String s2)
compare
in interface Comparator<String>
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.