Top Description Fields Constructors Methods
org.apache.tools.ant.util

public Class MergingMapper

extends Object
implements FileNameMapper
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.util.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

Modifier and TypeField and Description
protected String[]

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

a one-element array containing the merged filename.
mapFileName
(String
ignored.
sourceFileName
)

Implements org.apache.tools.ant.util.FileNameMapper.mapFileName.

Returns an one-element array containing the file name set via setTo.
public void
public void
setTo(String
the name of the merged file.
to
)

Implements org.apache.tools.ant.util.FileNameMapper.setTo.

Sets the name of the merged file.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mergedFileback to summary
protected String[] mergedFile

Constructor Detail

MergingMapperback to summary
public MergingMapper()
MergingMapperback to summary
public MergingMapper(String to)
Parameters
to:String

String

Since
Ant 1.8.0

Method Detail

mapFileNameback to summary
public String[] mapFileName(String sourceFileName)

Implements org.apache.tools.ant.util.FileNameMapper.mapFileName.

Returns an one-element array containing the file name set via setTo.

Parameters
sourceFileName:String

ignored.

Returns:String[]

a one-element array containing the merged filename.

Annotations
@Override
setFromback to summary
public void setFrom(String from)

Implements org.apache.tools.ant.util.FileNameMapper.setFrom.

Ignored.

Parameters
from:String

ignored.

Annotations
@Override
setToback to summary
public void setTo(String to)

Implements org.apache.tools.ant.util.FileNameMapper.setTo.

Sets the name of the merged file.

Parameters
to:String

the name of the merged file.

Annotations
@Override