Package org.apache.tools.ant.util
Class PackageNameMapper
java.lang.Object
org.apache.tools.ant.util.GlobPatternMapper
org.apache.tools.ant.util.PackageNameMapper
- All Implemented Interfaces:
- FileNameMapper
Maps directory name matches into a dotted package name. This is
 useful for matching JUnit test cases against their XML formatter
 results.
 
 <mapper classname="org.apache.tools.ant.util.PackageNameMapper"
         from="*Test.java" to="${test.data.dir}/TEST-*Test.xml"/>
 - 
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 file separators with dotsMethods inherited from class org.apache.tools.ant.util.GlobPatternMappergetHandleDirSep, mapFileName, setCaseSensitive, setFrom, setHandleDirSep, setTo
- 
Constructor Details- 
PackageNameMapperpublic PackageNameMapper()
 
- 
- 
Method Details- 
extractVariablePartReturns the part of the given string that matches the * in the "from" pattern replacing file separators with dots- Overrides:
- extractVariablePartin class- GlobPatternMapper
- Parameters:
- name- Source filename
- Returns:
- Replaced variable part
 
 
-