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:
David Dixon-Peugh
2002-08-23 00:48:37 +00:00
parent 3438442ab5
commit d3827593a7
4 changed files with 10 additions and 7 deletions

View File

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

Binary file not shown.

View File

@ -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"/>

View File

@ -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();