From afd5426dd7e6f20abf3072a0097d2fb5670569e2 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Tue, 4 Mar 2003 15:26:28 +0000 Subject: [PATCH] Updated; thanks to David Campbell for the bug report git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1500 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/readme.txt | 7 +++++-- pmd/xdocs/credits.xml | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) 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 @@
    -
  • Michael Sutherland - bug report
  • +
  • David Campbell - documentation tweaks
  • +
  • Michael Sutherland - bug report in IfStmtMustUseBracesRule
  • Andrew Glover - ExcessivePublicCountRule, CouplingBetweenObjectsRule, ExcessiveImportsRule, documentation tweaks
  • Egon Willighagen - pmd-web suggestion
  • Carl Gilbert - DoubleCheckedLockingRule, ConstructorCallsOverridableMethodRule, bug reports, feature requests, and documentation improvements
FileLineProblem
c:\data\pmd\pmd\test-data\Unused1.javac:\data\pmd\pmd\test-data\UnusedLocal1.java 5 Avoid unused local variables such as 'fr'