org.apache.tools.ant.util

Class 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.

Field Summary
protected String[]mergedFile
Method Summary
String[]mapFileName(String sourceFileName)
Returns an one-element array containing the file name set via setTo.
voidsetFrom(String from)
Ignored.
voidsetTo(String to)
Sets the name of the merged file.

Field Detail

mergedFile

protected String[] mergedFile

Method Detail

mapFileName

public String[] mapFileName(String sourceFileName)
Returns an one-element array containing the file name set via setTo.

Parameters: sourceFileName ignored.

Returns: a one-element array containing the merged filename.

setFrom

public void setFrom(String from)
Ignored.

Parameters: from ignored.

setTo

public void setTo(String to)
Sets the name of the merged file.

Parameters: to the name of the merged file.