need to use SOURCE classpath (was working in 3.x but not in 4.x)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3099 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -176,7 +176,7 @@ public class RunPMDAction extends CookieAction {
|
||||
}
|
||||
DataObject dataobject = ( DataObject )dataobjects.get( i );
|
||||
FileObject fobj = dataobject.getPrimaryFile();
|
||||
String name = ClassPath.getClassPath( fobj, ClassPath.COMPILE ).getResourceName( fobj, '.', false );
|
||||
String name = ClassPath.getClassPath( fobj, ClassPath.SOURCE ).getResourceName( fobj, '.', false );
|
||||
|
||||
//The file is not a java file
|
||||
if( !dataobject.getPrimaryFile().hasExt( "java" ) || dataobject.getCookie( LineCookie.class ) == null ) {
|
||||
|
Reference in New Issue
Block a user