org.apache.tools.ant.util

Class IdentityMapper

public class IdentityMapper extends Object implements FileNameMapper

Implementation of FileNameMapper that always returns the source file name.

This is the default FileNameMapper for the copy and move tasks.

Method Summary
String[]mapFileName(String sourceFileName)
Returns an one-element array containing the source file name.
voidsetFrom(String from)
Ignored.
voidsetTo(String to)
Ignored.

Method Detail

mapFileName

public String[] mapFileName(String sourceFileName)
Returns an one-element array containing the source file name.

Parameters: sourceFileName the name to map.

Returns: the source filename in a one-element array.

setFrom

public void setFrom(String from)
Ignored.

Parameters: from ignored.

setTo

public void setTo(String to)
Ignored.

Parameters: to ignored.