FileDocCategorySizeDatePackage
IdentityMapper.javaAPI DocApache Ant 1.701587Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.util

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.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.String[]mapFileName(java.lang.String sourceFileName)
Returns an one-element array containing the source file name.

param
sourceFileName the name to map.
return
the source filename in a one-element array.

        return new String[] {sourceFileName};
    
public voidsetFrom(java.lang.String from)
Ignored.

param
from ignored.

    
public voidsetTo(java.lang.String to)
Ignored.

param
to ignored.