A general note - most plugins include the PMD jar file, which has the rulesets + inside it. So even though the rulesets parameter that some plugins + use (i.e., "rulesets/unusedcode.xml") looks like a filesystem reference, it's really + being used by a getResourceAsStream() call to load it out of the PMD jar file.
+Integration into Eclipse is accomplished through the extensive diff --git a/pmd/xdocs/running.xml b/pmd/xdocs/running.xml index a6c558ff40..92771518d8 100644 --- a/pmd/xdocs/running.xml +++ b/pmd/xdocs/running.xml @@ -22,6 +22,11 @@ Avoid unused local variables such as 'fr' C:\tmp\pmd-1.8\pmd\etc> +
Note that the PMD binary distribution includes the ruleset files + inside the jar file - even though the "rulesets/unusedcode.xml" parameter + above looks like a filesystem reference, it's really being used by a getResourceAsStream() call + to load it out of the PMD jar file. And the same applies to the example below.
+