From b2cb78fe2aa5deb545c63a46d4963d72c125e638 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 6 Nov 2002 20:32:42 +0000 Subject: [PATCH] updated versions, added some more IDEA notes git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1211 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/xdocs/integrations.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pmd/xdocs/integrations.xml b/pmd/xdocs/integrations.xml index ef6ca793b9..d5266d8ede 100644 --- a/pmd/xdocs/integrations.xml +++ b/pmd/xdocs/integrations.xml @@ -26,12 +26,12 @@ X JBuilder pmd-jbuilder - 0.7 + 0.9 dcraine X Netbeans pmd-netbeans - 0.1 + 0.4 olemartin X JEdit @@ -46,7 +46,7 @@ N/A Maven pmd-maven - 0.1 + 0.3 wsdgoe X Ant @@ -142,12 +142,14 @@ 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.0rc3.jar net.sourceforge.pmd.PMD $FilePath$ ideaj rulesets/unusedcode.xml,rulesets/imports.xml,rulesets/basic.xml $Sourcepath$ $FileClass$.method $FileName$
  • +
  • Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-1.0.jar net.sourceforge.pmd.PMD $FilePath$ ideaj rulesets/unusedcode.xml,rulesets/imports.xml $Sourcepath$ $FileClass$.method $FileName$
  • Working directory: c:\
  • That's pretty much it. Now you can right click on a source directory and select PMD, it'll run recursively on the source files, and the results should -be displayed in a window and hyperlinked into the correct file and line of code.

    +be displayed in a window and hyperlinked into the correct file and line of code. I usually +right-click on the message window title bar and unselect "autohide" so the window doesn't go +away every time I fix something in the code window.