Bringing everything inline so we don't have platform dependencies
in the build. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@761 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -3,17 +3,17 @@
|
||||
<classpathentry kind="src" path="src/"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.0.0/resources.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_SOURCE/org.eclipse.core.resources_2.0.0/resourcessrc.zip"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.0.0/runtime.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_SOURCE/org.eclipse.core.runtime_2.0.0/runtimesrc.zip"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.0.0/ws/win32/swt.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_WIN32_SOURCE/org.eclipse.swt.win32_2.0.0/ws/win32/swtsrc.zip"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.0.0/workbench.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_SOURCE/org.eclipse.ui_2.0.0/workbenchsrc.zip"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.ui.win32_2.0.0/workbenchwin32.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_WIN32_SOURCE/org.eclipse.ui.win32_2.0.0/workbenchwin32src.zip"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.0.0/ws/win32/swt.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_WIN32_SOURCE/org.eclipse.swt.win32_2.0.0/ws/win32/swtsrc.zip"/>
|
||||
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.apache.xerces_4.0.3/xmlParserAPIs.jar"/>
|
||||
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.apache.xerces_4.0.3/xercesImpl.jar"/>
|
||||
<classpathentry kind="var"
|
||||
path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.0.0/runtime.jar" sourcepath="_ORG_ECLIPSE_PLATFORM_SOURCE/org.eclipse.core.runtime_2.0.0/runtimesrc.zip"/>
|
||||
<classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
|
||||
<classpathentry kind="lib" path="C:/eclipse/workspace/pmd-eclipse/lib/pmd-0.9.jar"/>
|
||||
<classpathentry kind="lib" path="lib/pmd-0.9.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
BIN
pmd-eclipse/lib/pmd-0.9.jar
Normal file
BIN
pmd-eclipse/lib/pmd-0.9.jar
Normal file
Binary file not shown.
@ -10,7 +10,6 @@
|
||||
<library name="pmd-eclipse.jar">
|
||||
<export name="*"/>
|
||||
</library>
|
||||
<library name="lib/pmd-0.9.jar"/>
|
||||
</runtime>
|
||||
<requires>
|
||||
<import plugin="org.eclipse.core.resources"/>
|
||||
|
@ -39,6 +39,9 @@ public class PMDVisitor implements IResourceVisitor {
|
||||
private PMD pmd = null;
|
||||
private RuleSet ruleSet = null;
|
||||
|
||||
public static final String PMD_VIOLATION =
|
||||
"net.sourceforge.pmd.eclipse.violation";
|
||||
|
||||
/**
|
||||
* No Argument Constructor
|
||||
*/
|
||||
@ -77,7 +80,8 @@ public class PMDVisitor implements IResourceVisitor {
|
||||
pmd.processFile( input, ruleSet, context);
|
||||
|
||||
Iterator iter = context.getReport().iterator();
|
||||
file.deleteMarkers(null,false, IResource.DEPTH_ONE);
|
||||
file.deleteMarkers(PMD_VIOLATION, true,
|
||||
IResource.DEPTH_INFINITE);
|
||||
while (iter.hasNext()) {
|
||||
RuleViolation violation = (RuleViolation) iter.next();
|
||||
|
||||
|
Reference in New Issue
Block a user