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:
Radim Kubacki
2004-12-21 21:39:49 +00:00
parent 807db01009
commit 33465aa74b

View File

@ -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 ) {