Package org.apache.tools.ant.util
Class MergingMapper
java.lang.Object
org.apache.tools.ant.util.MergingMapper
- All Implemented Interfaces:
FileNameMapper
Implementation of FileNameMapper that always returns the same
target file name.
This is the default FileNameMapper for the archiving tasks and uptodate.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
mergedFile
-
-
Constructor Details
-
MergingMapper
public MergingMapper() -
MergingMapper
- Parameters:
to
- String- Since:
- Ant 1.8.0
-
-
Method Details
-
setFrom
Ignored.- Specified by:
setFrom
in interfaceFileNameMapper
- Parameters:
from
- ignored.
-
setTo
Sets the name of the merged file.- Specified by:
setTo
in interfaceFileNameMapper
- Parameters:
to
- the name of the merged file.
-
mapFileName
Returns an one-element array containing the file name set via setTo.- Specified by:
mapFileName
in interfaceFileNameMapper
- Parameters:
sourceFileName
- ignored.- Returns:
- a one-element array containing the merged filename.
-