Class FilterMapper
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.FilterChain
org.apache.tools.ant.types.mappers.FilterMapper
- All Implemented Interfaces:
Cloneable,FileNameMapper
This is a FileNameMapper based on a FilterChain.
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tools.ant.types.FilterChain
add, addClassConstants, addContainsRegex, addDeleteCharacters, addEscapeUnicode, addExpandProperties, addFilterReader, addHeadFilter, addIgnoreBlank, addLineContains, addLineContainsRegExp, addPrefixLines, addReplaceRegex, addReplaceString, addReplaceTokens, addStripJavaComments, addStripLineBreaks, addStripLineComments, addSuffixLines, addTabsToSpaces, addTailFilter, addTokenFilter, addTrim, dieOnCircularReference, getFilterReaders, setRefidMethods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toStringMethods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
FilterMapper
public FilterMapper()
-
-
Method Details
-
setFrom
From attribute not supported.- Specified by:
setFromin interfaceFileNameMapper- Parameters:
from- a string- Throws:
BuildException- always
-
setTo
From attribute not supported.- Specified by:
setToin interfaceFileNameMapper- Parameters:
to- a string- Throws:
BuildException- always
-
mapFileName
Return the result of the filters on the sourcefilename.- Specified by:
mapFileNamein interfaceFileNameMapper- Parameters:
sourceFileName- the filename to map- Returns:
- a one-element array of converted filenames, or null if the filterchain returns an empty string.
-