org.apache.tools.ant.util

Class MergingMapper

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 Summary

protected String[]
mergedFile

Method Summary

String[]
mapFileName(String sourceFileName)
Returns an one-element array containing the file name set via setTo.
void
setFrom(String from)
Ignored.
void
setTo(String to)
Sets the name of the merged file.

Field Details

mergedFile

protected String[] mergedFile

Method Details

mapFileName

public String[] mapFileName(String sourceFileName)
Returns an one-element array containing the file name set via setTo.
Specified by:
mapFileName in interface FileNameMapper

setFrom

public void setFrom(String from)
Ignored.
Specified by:
setFrom in interface FileNameMapper

setTo

public void setTo(String to)
Sets the name of the merged file.
Specified by:
setTo in interface FileNameMapper

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.