Package org.apache.tools.ant.util
Class UnPackageNameMapper
java.lang.Object
org.apache.tools.ant.util.GlobPatternMapper
org.apache.tools.ant.util.UnPackageNameMapper
- All Implemented Interfaces:
- FileNameMapper
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 SummaryFields inherited from class org.apache.tools.ant.util.GlobPatternMapperfromPostfix, fromPrefix, postfixLength, prefixLength, toPostfix, toPrefix
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringextractVariablePart(String name) Returns the part of the given string that matches the * in the "from" pattern replacing dots with file separatorsMethods inherited from class org.apache.tools.ant.util.GlobPatternMappergetHandleDirSep, mapFileName, setCaseSensitive, setFrom, setHandleDirSep, setTo
- 
Constructor Details- 
UnPackageNameMapperpublic UnPackageNameMapper()
 
- 
- 
Method Details- 
extractVariablePartReturns the part of the given string that matches the * in the "from" pattern replacing dots with file separators- Overrides:
- extractVariablePartin class- GlobPatternMapper
- Parameters:
- name- Source filename
- Returns:
- Replaced variable part
 
 
-