org.apache.tools.ant.util
Class FlatFileNameMapper
java.lang.Object
org.apache.tools.ant.util.FlatFileNameMapper
- FileNameMapper
public class FlatFileNameMapper
extends java.lang.Object
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.
String[] | mapFileName(String sourceFileName) - Returns an one-element array containing the source file name
without any leading directory information.
|
void | setFrom(String from) - Ignored.
|
void | setTo(String to) - Ignored.
|
mapFileName
public String[] mapFileName(String sourceFileName)
Returns an one-element array containing the source file name
without any leading directory information.
- mapFileName in interface FileNameMapper
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.