Save This Page
Home » maven-ant-tasks-2.1.0-src » org.apache » maven » artifact » ant » [javadoc | source]
public class: VersionMapper [javadoc | source]

All Implemented Interfaces:
    Comparator, FileNameMapper

Ant filename mapper to remove version info from filename when copying dependencies.
Method from org.apache.maven.artifact.ant.VersionMapper Summary:
compare,   mapFileName,   setFrom,   setTo
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.maven.artifact.ant.VersionMapper Detail:
 public int compare(Object o1,
    Object o2) 
 public String[] mapFileName(String sourceFileName) 
 public  void setFrom(String from) 
    Set the versions identifiers that this mapper can remove from filenames. The separator value used is path separator, as used by dependencies task when setting versionsId property value.
 public  void setTo(String to) 
    By default, only filename is changed, but if this attribute is set to flatten, directory is removed.