MergingMapper (Apache Ant API)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.util.MergingMapper
Implementation of FileNameMapper that always returns the same target file name.
This is the default FileNameMapper for the archiving tasks and uptodate.
Field Summary | |
protected java.lang.String[] |
mergedFile
|
Constructor Summary | |
MergingMapper()
|
Method Summary | |
java.lang.String[] |
mapFileName(java.lang.String sourceFileName)
Returns an one-element array containing the file name set via setTo. |
void |
setFrom(java.lang.String from)
Ignored. |
void |
setTo(java.lang.String to)
Sets the name of the merged file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String[] mergedFile
Constructor Detail |
public MergingMapper()
Method Detail |
public void setFrom(java.lang.String from)
setFrom
in interface FileNameMapper
public void setTo(java.lang.String to)
setTo
in interface FileNameMapper
public java.lang.String[] mapFileName(java.lang.String sourceFileName)
mapFileName
in interface FileNameMapper
sourceFileName
- the name of the source file relative to
some given basedirectory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |