Class PackageNameMapper
java.lang.Object
org.apache.maven.shared.model.fileset.mappers.GlobPatternMapper
org.apache.maven.shared.model.fileset.mappers.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 Summary
Fields inherited from class org.apache.maven.shared.model.fileset.mappers.GlobPatternMapper
fromPostfix, fromPrefix, postfixLength, prefixLength, toPostfix, toPrefix - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractVariablePart(String name) Returns the part of the given string that matches the * in the "from" pattern.Methods inherited from class org.apache.maven.shared.model.fileset.mappers.GlobPatternMapper
mapFileName, setCaseSensitive, setFrom, setHandleDirSep, setTo 
- 
Constructor Details
- 
PackageNameMapper
public PackageNameMapper() 
 - 
 - 
Method Details
- 
extractVariablePart
Description copied from class:GlobPatternMapperReturns the part of the given string that matches the * in the "from" pattern.- Overrides:
 extractVariablePartin classGlobPatternMapper- Parameters:
 name- the source file name- Returns:
 - the variable part of the name
 
 
 -