|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.util.FlatFileNameMapper
public class FlatFileNameMapper
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 Summary | |
|---|---|
FlatFileNameMapper()
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
mapFileName(java.lang.String sourceFileName)
Returns an one-element array containing the source file name without any leading directory information. |
void |
setFrom(java.lang.String from)
Ignored. |
void |
setTo(java.lang.String to)
Ignored. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlatFileNameMapper()
| Method Detail |
|---|
public void setFrom(java.lang.String from)
setFrom in interface FileNameMapperfrom - ignored.public void setTo(java.lang.String to)
setTo in interface FileNameMapperto - ignored.public java.lang.String[] mapFileName(java.lang.String sourceFileName)
mapFileName in interface FileNameMappersourceFileName - the name to map.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||