Package org.apache.tools.ant.util
Class MergingMapper
- java.lang.Object
- 
- org.apache.tools.ant.util.MergingMapper
 
- 
- All Implemented Interfaces:
- FileNameMapper
 
 public class MergingMapper extends java.lang.Object implements FileNameMapper Implementation of FileNameMapper that always returns the same target file name.This is the default FileNameMapper for the archiving tasks and uptodate. 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.String[]mergedFile
 - 
Constructor SummaryConstructors Constructor Description MergingMapper()MergingMapper(java.lang.String to)
 - 
Method SummaryModifier and Type Method Description java.lang.String[]mapFileName(java.lang.String sourceFileName)Returns an one-element array containing the file name set via setTo.voidsetFrom(java.lang.String from)Ignored.voidsetTo(java.lang.String to)Sets the name of the merged file.
 
- 
- 
- 
Method Detail- 
setFrompublic void setFrom(java.lang.String from) Ignored.- Specified by:
- setFromin interface- FileNameMapper
- Parameters:
- from- ignored.
 
 - 
setTopublic void setTo(java.lang.String to) Sets the name of the merged file.- Specified by:
- setToin interface- FileNameMapper
- Parameters:
- to- the name of the merged file.
 
 - 
mapFileNamepublic java.lang.String[] mapFileName(java.lang.String sourceFileName) Returns an one-element array containing the file name set via setTo.- Specified by:
- mapFileNamein interface- FileNameMapper
- Parameters:
- sourceFileName- ignored.
- Returns:
- a one-element array containing the merged filename.
 
 
- 
 
-