diff --git a/pmd/xdocs/installing.xml b/pmd/xdocs/installing.xml index 594f3c2dd1..50936102e5 100644 --- a/pmd/xdocs/installing.xml +++ b/pmd/xdocs/installing.xml @@ -34,11 +34,11 @@

Download the latest binary distribution - i.e., pmd-bin-x.xx.zip

Unzip it into any directory: - [tom@hal tmp]$ unzip -q pmd-bin-1.1.zip + [tom@hal tmp]$ unzip -q pmd-bin-1.2.zip [tom@hal tmp]$ ls -l total 4640 - drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-1.1 - -rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-1.1.zip + drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-1.2 + -rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-1.2.zip [tom@hal tmp]$

diff --git a/pmd/xdocs/integrations.xml b/pmd/xdocs/integrations.xml index ccdb20248c..40cd14863e 100644 --- a/pmd/xdocs/integrations.xml +++ b/pmd/xdocs/integrations.xml @@ -156,7 +156,7 @@ works OK. Here's how to set it up:

  • Description: PMD doth help one clean the code
  • Program: javaw
  • For the next two parameters you'll need to plug in the location of your PMD installation, the rulesets you want to use, and your working directory
  • -
  • Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-1.1.jar;c:\pmd\lib\jaxen-core-1.0-fcs.jar;c:\pmd\lib\saxpath-1.0-fcs.jar net.sourceforge.pmd.PMD $FilePath$ ideaj rulesets/unusedcode.xml,rulesets/imports.xml $Sourcepath$ $FileClass$.method $FileName$
  • +
  • Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-1.2.jar;c:\pmd\lib\jaxen-core-1.0-fcs.jar;c:\pmd\lib\saxpath-1.0-fcs.jar net.sourceforge.pmd.PMD $FilePath$ ideaj rulesets/unusedcode.xml,rulesets/imports.xml $Sourcepath$ $FileClass$.method $FileName$
  • Working directory: c:\
  • diff --git a/pmd/xdocs/running.xml b/pmd/xdocs/running.xml index 84872d4d44..7d416e6a97 100644 --- a/pmd/xdocs/running.xml +++ b/pmd/xdocs/running.xml @@ -12,7 +12,7 @@
  • Type run [filename] [report format] [ruleset file], i.e:


  • -C:\tmp\pmd-1.1\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml +C:\tmp\pmd-1.2\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml <?xml version="1.0"?><pmd> <file name="c:\data\pmd\pmd\test-data\Unused1.java"> <violation line="5" rule="UnusedLocalVariable"> @@ -20,11 +20,11 @@ Avoid unused local variables such as 'fr' </violation> </file></pmd> -C:\tmp\pmd-1.1\pmd\etc> +C:\tmp\pmd-1.2\pmd\etc>
  • If you are using JDK 1.3 or you just want to run PMD without the batch file, you can do a:
  • -C:\data\pmd\pmd>java -cp lib\pmd-1.1.jar;lib\xercesImpl-2.0.2.jar; +C:\data\pmd\pmd>java -cp lib\pmd-1.2.jar;lib\xercesImpl-2.0.2.jar; lib\xmlParserAPIs-2.0.2.jar;lib\jaxen-core-1.0-fcs.jar;lib\saxpath-1.0-fcs.jar net.sourceforge.pmd.PMD c:\j2sdk1.4.1_01\src\java\lang xml @@ -32,7 +32,12 @@ C:\data\pmd\pmd>java -cp lib\pmd-1.1.jar;lib\xercesImpl-2.0.2.jar;

  • Notice that in this case the output is in XML, so you can redirect it to a file and XSLT it or whatever
  • - +
  • The command line interface also accepts the following optional arguments:
  • + +