Package org.apache.tools.ant.util
Class FlatFileNameMapper
java.lang.Object
org.apache.tools.ant.util.FlatFileNameMapper
- All Implemented Interfaces:
- 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.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
FlatFileNameMapperpublic FlatFileNameMapper()
 
- 
- 
Method Details- 
setFromIgnored.- Specified by:
- setFromin interface- FileNameMapper
- Parameters:
- from- ignored.
 
- 
setToIgnored.- Specified by:
- setToin interface- FileNameMapper
- Parameters:
- to- ignored.
 
- 
mapFileNameReturns an one-element array containing the source file name without any leading directory information.- Specified by:
- mapFileNamein interface- FileNameMapper
- Parameters:
- sourceFileName- the name to map.
- Returns:
- the file name in a one-element array.
 
 
-