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

public Class IdentityMapper

extends Object
implements FileNameMapper
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.util.FileNameMapper

Implementation of FileNameMapper that always returns the source file name.

This is the default FileNameMapper for the copy and move tasks.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

the source filename in a one-element array.
mapFileName
(String
the name to map.
sourceFileName
)

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

Returns an one-element array containing the source file name.
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IdentityMapperback to summary
public IdentityMapper()

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 source file name.

Parameters
sourceFileName:String

the name to map.

Returns:String[]

the source filename in a one-element array.

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.

Ignored.

Parameters
to:String

ignored.

Annotations
@Override