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

public Class UnPackageNameMapper

extends GlobPatternMapper
Class Inheritance
Imports
java.io.File

Maps dotted package name matches to a directory name. This is the inverse of the package mapper. This is useful for matching XML formatter results against their JUnit test cases.
<mapper classname="org.apache.tools.ant.util.UnPackageNameMapper"
        from="${test.data.dir}/TEST-*Test.xml" to="*Test.java">

Field Summary

Inherited from org.apache.tools.ant.util.GlobPatternMapper:
fromPostfixfromPrefixpostfixLengthprefixLengthtoPostfixtoPrefix

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String

Returns:

Replaced variable part
extractVariablePart
(String
Source filename
name
)

Overrides org.apache.tools.ant.util.GlobPatternMapper.extractVariablePart.

Returns the part of the given string that matches the * in the "from" pattern replacing dots with file separators
Inherited from org.apache.tools.ant.util.GlobPatternMapper:
getHandleDirSepmapFileNamesetCaseSensitivesetFromsetHandleDirSepsetTo

Constructor Detail

UnPackageNameMapperback to summary
public UnPackageNameMapper()

Method Detail

extractVariablePartback to summary
protected String extractVariablePart(String name)

Overrides org.apache.tools.ant.util.GlobPatternMapper.extractVariablePart.

Returns the part of the given string that matches the * in the "from" pattern replacing dots with file separators

Parameters
name:String

Source filename

Returns:String

Replaced variable part

Annotations
@Override