org.apache.maven.artifact.ant
Class VersionMapper
java.lang.Object
org.apache.maven.artifact.ant.VersionMapper
- All Implemented Interfaces:
- java.util.Comparator, org.apache.tools.ant.util.FileNameMapper
public class VersionMapper
- extends java.lang.Object
- implements org.apache.tools.ant.util.FileNameMapper, java.util.Comparator
Field Summary |
private java.lang.String |
to
|
private java.util.List |
versions
|
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
java.lang.String[] |
mapFileName(java.lang.String sourceFileName)
|
void |
setFrom(java.lang.String from)
Set the versions identifiers that this mapper can remove from filename. |
void |
setTo(java.lang.String to)
By default, only filename is changed, but if this attribute is set to flatten , directory is
removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
versions
private java.util.List versions
to
private java.lang.String to
VersionMapper
public VersionMapper()
mapFileName
public java.lang.String[] mapFileName(java.lang.String sourceFileName)
- Specified by:
mapFileName
in interface org.apache.tools.ant.util.FileNameMapper
setFrom
public void setFrom(java.lang.String from)
- Set the versions identifiers that this mapper can remove from filename. The value separator used is path
separator.
- Specified by:
setFrom
in interface org.apache.tools.ant.util.FileNameMapper
setTo
public void setTo(java.lang.String to)
- By default, only filename is changed, but if this attribute is set to
flatten
, directory is
removed.
- Specified by:
setTo
in interface org.apache.tools.ant.util.FileNameMapper
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator