org.apache.tools.ant.util
Class FlatFileNameMapper
java.lang.Object
|
+--org.apache.tools.ant.util.FlatFileNameMapper
- All Implemented Interfaces:
- FileNameMapper
- public class FlatFileNameMapper
- extends java.lang.Object
- implements FileNameMapper
Implementation of FileNameMapper that always returns the source
file name without any leading directory information.
This is the default FileNameMapper for the copy and move
tasks if the flatten attribute has been set.
Method Summary |
java.lang.String[] |
mapFileName(java.lang.String sourceFileName)
Returns an one-element array containing the source file name
without any leading directory information. |
void |
setFrom(java.lang.String from)
Ignored. |
void |
setTo(java.lang.String to)
Ignored. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatFileNameMapper
public FlatFileNameMapper()
setFrom
public void setFrom(java.lang.String from)
- Ignored.
- Specified by:
setFrom
in interface FileNameMapper
setTo
public void setTo(java.lang.String to)
- Ignored.
- Specified by:
setTo
in interface FileNameMapper
mapFileName
public java.lang.String[] mapFileName(java.lang.String sourceFileName)
- Returns an one-element array containing the source file name
without any leading directory information.
- Specified by:
mapFileName
in interface FileNameMapper
- Following copied from interface:
org.apache.tools.ant.util.FileNameMapper
- Parameters:
sourceFileName
- the name of the source file relative to
some given basedirectory.
Includes only those classes commonly used by task writers. The Ant 1.4.1 distribution includes complete Javadoc for all classes included in Ant, though in most cases these are not intended as APIs.