FileDocCategorySizeDatePackage
FlatFileNameMapper.javaAPI DocApache Ant 1.701745Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.util

FlatFileNameMapper

public class FlatFileNameMapper extends 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.

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 without any leading directory information.

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

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

param
from ignored.

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

param
to ignored.