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

public Class FlatFileNameMapper

extends Object
implements FileNameMapper
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.util.FileNameMapper
Imports
java.io.File

Implementation of FileNameMapper that always returns the source file name without any leading directory information.

This is the default FileNameMapper for the copy and move tasks if the flatten attribute has been set.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

the file name 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 without any leading directory information.
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FlatFileNameMapperback to summary
public FlatFileNameMapper()

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 without any leading directory information.

Parameters
sourceFileName:String

the name to map.

Returns:String[]

the file name 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