org.apache.tools.ant.util

Class UnPackageNameMapper

public class UnPackageNameMapper extends GlobPatternMapper

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">
 
Method Summary
protected StringextractVariablePart(String name)
Returns the part of the given string that matches the * in the "from" pattern replacing dots with file separators

Method Detail

extractVariablePart

protected String extractVariablePart(String name)
Returns the part of the given string that matches the * in the "from" pattern replacing dots with file separators

Parameters: name Source filename

Returns: Replaced variable part

Copyright