FileDocCategorySizeDatePackage
MergingMapper.javaAPI DocApache Ant 1.701805Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.util

MergingMapper

public class MergingMapper extends 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.

Fields Summary
protected String[]
mergedFile
Constructors Summary
Methods Summary
public java.lang.String[]mapFileName(java.lang.String sourceFileName)
Returns an one-element array containing the file name set via setTo.

param
sourceFileName ignored.
return
a one-element array containing the merged filename.

        return mergedFile;
    
public voidsetFrom(java.lang.String from)
Ignored.

param
from ignored.

    // CheckStyle:VisibilityModifier ON

             
        
    
public voidsetTo(java.lang.String to)
Sets the name of the merged file.

param
to the name of the merged file.

        mergedFile = new String[] {to};