org.apache.tools.ant.util
Class IdentityMapper
java.lang.Object
org.apache.tools.ant.util.IdentityMapper
- FileNameMapper
public class IdentityMapper
extends java.lang.Object
Implementation of FileNameMapper that always returns the source file name.
This is the default FileNameMapper for the copy and move
tasks.
String[] | mapFileName(String sourceFileName) - Returns an one-element array containing the source file name.
|
void | setFrom(String from) - Ignored.
|
void | setTo(String to) - Ignored.
|
mapFileName
public String[] mapFileName(String sourceFileName)
Returns an one-element array containing the source file name.
- mapFileName in interface FileNameMapper
sourceFileName
- the name to map.
- the source filename in a one-element array.