com.starobject.mediasort.ant
Class SortMapper
java.lang.Object
org.apache.tools.ant.ProjectComponent
com.starobject.mediasort.ant.SortMapper
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.tools.ant.util.FileNameMapper
public class SortMapper
- extends org.apache.tools.ant.ProjectComponent
- implements org.apache.tools.ant.util.FileNameMapper
Custom Ant File Mapper that allow to sort and rename files based on a pattern
containing medatada attributes name.
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
|
Method Summary |
java.lang.String[] |
mapFileName(java.lang.String sourceFileName)
|
void |
setFrom(java.lang.String from)
|
void |
setTo(java.lang.String to)
|
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortMapper
public SortMapper()
setFrom
public void setFrom(java.lang.String from)
- Specified by:
setFrom in interface org.apache.tools.ant.util.FileNameMapper
setTo
public void setTo(java.lang.String to)
- Specified by:
setTo in interface org.apache.tools.ant.util.FileNameMapper
mapFileName
public java.lang.String[] mapFileName(java.lang.String sourceFileName)
- Specified by:
mapFileName in interface org.apache.tools.ant.util.FileNameMapper