diff --git a/pmd/etc/readme.txt b/pmd/etc/readme.txt index c379b52c2c..e4331304ef 100644 --- a/pmd/etc/readme.txt +++ b/pmd/etc/readme.txt @@ -20,12 +20,12 @@ C:\tmp\tmp_pmd\pmd\etc> -run PMD on a Java source file -C:\tmp\tmp_pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java html rulesets/unusedcode.xml +C:\tmp\tmp_pmd\pmd\etc>run c:\data\pmd\pmd\test-data\UnusedLocal1.java html rulesets/unusedcode.xml PMD - + @@ -58,6 +58,9 @@ HOW TO RUN PMD FROM THE COMMAND LINE (UNIX) [build@ul020-dmz etc]$ -if you send in a directory as the first parameter, PMD will run recursively on all files and subdirectories +-note that if you're using JDK 1.3, you'll need to use java -cp, not java -jar. Like this: + +java -cp lib\pmd-1.03.jar;lib\xercesImpl-2.0.2.jar;lib\xmlParserAPIs-2.0.2.jar net.sourceforge.pmd.PMD c:\j2sdk1.4.1_01\src\java\lang xml rulesets/imports.xml diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index 08e76643a5..2e0f505866 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -10,7 +10,8 @@
FileLineProblem
c:\data\pmd\pmd\test-data\Unused1.javac:\data\pmd\pmd\test-data\UnusedLocal1.java 5 Avoid unused local variables such as 'fr'