Here is my second patch which replaces the previous one. I am much happier with this one as :
- There is no change to ProjectProperties.java
- It does not depend on maven.src.dir nor maven.src.set
FYI, it uses JDepend to find the location of the source file :
public static final String getPackagePath(String absoluteFileName)
throws IOException
{
JavaSourceFileParser parser = new JavaSourceFileParser();
JavaClass clazz = parser.parse(absoluteFileName);
String packageName = clazz.getPackageName();
return packageName.replace('.', File.separatorChar) +
File.separatorChar + clazz.getName() + ".java";
}
JDepend looks cool and useful :-)
-Vincent
PS: I haven't tried it on unix.
src.patch
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
