From 33465aa74b890a4696fd3c8d4032f438fbe8cb47 Mon Sep 17 00:00:00 2001 From: Radim Kubacki Date: Tue, 21 Dec 2004 21:39:49 +0000 Subject: [PATCH] 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 --- pmd-netbeans/src/pmd/RunPMDAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-netbeans/src/pmd/RunPMDAction.java b/pmd-netbeans/src/pmd/RunPMDAction.java index 48e2c6c25f..2d05271995 100644 --- a/pmd-netbeans/src/pmd/RunPMDAction.java +++ b/pmd-netbeans/src/pmd/RunPMDAction.java @@ -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 ) {