Package org.apache.tools.ant.util
Class IdentityMapper
java.lang.Object
org.apache.tools.ant.util.IdentityMapper
- All Implemented Interfaces:
FileNameMapper
Implementation of FileNameMapper that always returns the source file name.
This is the default FileNameMapper for the copy and move tasks.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IdentityMapper
public IdentityMapper()
-
-
Method Details
-
setFrom
Ignored.- Specified by:
setFromin interfaceFileNameMapper- Parameters:
from- ignored.
-
setTo
Ignored.- Specified by:
setToin interfaceFileNameMapper- Parameters:
to- ignored.
-
mapFileName
Returns an one-element array containing the source file name.- Specified by:
mapFileNamein interfaceFileNameMapper- Parameters:
sourceFileName- the name to map.- Returns:
- the source filename in a one-element array.
-