Rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2292 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1 +1 @@
|
||||
java -cp ../build;../lib/pmd-1.2.1.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.util.ASTViewer
|
||||
java -cp ../build;../lib/pmd-1.2.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.util.ASTViewer
|
||||
|
@ -1 +1 @@
|
||||
java -cp ../build:../lib/pmd-1.2.1.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.util.ASTViewer
|
||||
java -cp ../build:../lib/pmd-1.2.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.util.ASTViewer
|
||||
|
@ -1 +1 @@
|
||||
java -cp ../build;../lib/pmd-1.2.1.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.util.viewer.Viewer
|
||||
java -cp ../build;../lib/pmd-1.2.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.util.viewer.Viewer
|
||||
|
@ -1 +1 @@
|
||||
java -cp ../build:../lib/pmd-1.2.1.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.util.viewer.Viewer
|
||||
java -cp ../build:../lib/pmd-1.2.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.util.viewer.Viewer
|
||||
|
@ -6,7 +6,7 @@
|
||||
<property name="build" value="build\"/>
|
||||
<property name="rulesets" value="rulesets\"/>
|
||||
<property name="regress" value="regress\"/>
|
||||
<property name="version" value="1.2.1"/>
|
||||
<property name="version" value="1.2.2"/>
|
||||
<property name="jnlp_staging_area" value="/home/tom/misc/importscrubberjnlp/"/>
|
||||
|
||||
<path id="classpath.path">
|
||||
|
@ -1,4 +1,4 @@
|
||||
???? 2003 - 1.3:
|
||||
October 06, 2003 - 1.2.2:
|
||||
Added new rule: CloseConnectionRule
|
||||
Fixed bug 782246 - FinalFieldCouldBeStatic no longer flags fields in interfaces.
|
||||
Fixed bug 782235 - "ant -version" now prints more details when a file errors out.
|
||||
|
@ -13,7 +13,7 @@
|
||||
<offline-allowed/>
|
||||
<resources>
|
||||
<j2se version="1.3+" max-heap-size="384M"/>
|
||||
<jar href="pmd-1.2.1.jar"/>
|
||||
<jar href="pmd-1.2.2.jar"/>
|
||||
</resources>
|
||||
<application-desc main-class="net.sourceforge.pmd.cpd.GUI"/>
|
||||
</jnlp>
|
@ -1 +1 @@
|
||||
java -Xmx512m -cp ../lib/pmd-1.2.1.jar net.sourceforge.pmd.cpd.GUI
|
||||
java -Xmx512m -cp ../lib/pmd-1.2.2.jar net.sourceforge.pmd.cpd.GUI
|
||||
|
@ -6,7 +6,7 @@ esac
|
||||
FILE=$1
|
||||
FORMAT=$2
|
||||
RULESETFILES=$3
|
||||
PMD_CLASSPATH=../lib/pmd-1.2.1.jar:../lib/jaxen-core-1.0-fcs.jar:../lib/saxpath-1.0-fcs.jar
|
||||
PMD_CLASSPATH=../lib/pmd-1.2.2.jar:../lib/jaxen-core-1.0-fcs.jar:../lib/saxpath-1.0-fcs.jar
|
||||
if $cygwin; then
|
||||
FILE=`cygpath --windows "$FILE"`
|
||||
PMD_CLASSPATH=`cygpath --path --windows "$PMD_CLASSPATH"`
|
||||
|
@ -1,8 +1,5 @@
|
||||
|
||||
<<<<<<<<<<<<<<< BEFORE RELEASE <<<<<<<<<<<<<< update Ant task docs to reflect new 'targetjdk13' boolean
|
||||
|
||||
update run.*, astviewer.*, cpd.jnlp, cpdgui.bat, build.xml, PMD.java to point to pmd-1.2.1.jar
|
||||
update xdocs/running.xml, compiling.xml, integrations.xml, installing.xml to reflect pmd-1.2.1
|
||||
update run.*, astviewer.*, bgastviewer.*, cygwin-run.sh, cpd.jnlp, cpdgui.bat, build.xml, CommandLineOptions.java to point to pmd-1.2.2.jar
|
||||
update xdocs/running.xml, compiling.xml, integrations.xml, installing.xml to reflect pmd-1.2.2
|
||||
update the release date in the changelog
|
||||
move rules from "newrules.xml" into a real ruleset file
|
||||
update release number and tag name in project.xml
|
||||
@ -22,46 +19,46 @@ cd ..
|
||||
./docs all
|
||||
|
||||
Prepare binary release:
|
||||
rm -rf ~/tmp/pmd-1.2.1
|
||||
mkdir -p ~/tmp/pmd-1.2.1/etc
|
||||
mkdir ~/tmp/pmd-1.2.1/lib
|
||||
cp ../LICENSE.txt run.* cygwin-run.sh build.xml cpdgui.bat changelog.txt astviewer.* ~/tmp/pmd-1.2.1/etc
|
||||
cp ../lib/pmd-1.2.1.jar ../lib/xmlParserAPIs-2.0.2.jar ../lib/xercesImpl-2.0.2.jar ../lib/jaxen-core-1.0-fcs.jar ../lib/saxpath-1.0-fcs.jar ~/tmp/pmd-1.2.1/lib/
|
||||
cp -R xslt/ ~/tmp/pmd-1.2.1/etc/xslt/
|
||||
cp -R ../target/docs ~/tmp/pmd-1.2.1
|
||||
rm -rf ~/tmp/pmd-1.2.2
|
||||
mkdir -p ~/tmp/pmd-1.2.2/etc
|
||||
mkdir ~/tmp/pmd-1.2.2/lib
|
||||
cp ../LICENSE.txt run.* cygwin-run.sh build.xml cpdgui.bat changelog.txt astviewer.* ~/tmp/pmd-1.2.2/etc
|
||||
cp ../lib/pmd-1.2.2.jar ../lib/xmlParserAPIs-2.0.2.jar ../lib/xercesImpl-2.0.2.jar ../lib/jaxen-core-1.0-fcs.jar ../lib/saxpath-1.0-fcs.jar ~/tmp/pmd-1.2.2/lib/
|
||||
cp -R xslt/ ~/tmp/pmd-1.2.2/etc/xslt/
|
||||
cp -R ../target/docs ~/tmp/pmd-1.2.2
|
||||
cd ~/tmp
|
||||
zip -q -r pmd-bin-1.2.1.zip pmd-1.2.1/
|
||||
zip -q -r pmd-bin-1.2.2.zip pmd-1.2.2/
|
||||
cd -
|
||||
|
||||
Time to tag:
|
||||
|
||||
cd ../../
|
||||
cvs -q rtag -D tomorrow "pmd_release_1_2_1" pmd
|
||||
cvs -q rtag -D tomorrow "pmd_release_1_2_2" pmd
|
||||
|
||||
Prepare source release:
|
||||
rm -rf ~/tmp/pmd-1.2.1
|
||||
rm -rf ~/tmp/pmd-1.2.2
|
||||
mkdir tmp
|
||||
cvs -q export -d tmp/ -r pmd_release_1_2_1 pmd
|
||||
cvs -q export -d tmp/ -r pmd_release_1_2_2 pmd
|
||||
cd pmd/etc
|
||||
ant jarsrc
|
||||
cd ../../
|
||||
cp pmd/lib/pmd-src-1.2.1.jar tmp/lib/
|
||||
mv tmp ~/tmp/pmd-1.2.1
|
||||
cp pmd/lib/pmd-1.2.1.jar ~/tmp/pmd-1.2.1/lib
|
||||
cp -R pmd/target/docs ~/tmp/pmd-1.2.1/
|
||||
cp pmd/lib/pmd-src-1.2.2.jar tmp/lib/
|
||||
mv tmp ~/tmp/pmd-1.2.2
|
||||
cp pmd/lib/pmd-1.2.2.jar ~/tmp/pmd-1.2.2/lib
|
||||
cp -R pmd/target/docs ~/tmp/pmd-1.2.2/
|
||||
cd ~/tmp/
|
||||
zip -q -r pmd-src-1.2.1.zip pmd-1.2.1/
|
||||
zip -q -r pmd-src-1.2.2.zip pmd-1.2.2/
|
||||
|
||||
if you see a bug and fix it, you can delete the release using:
|
||||
cvs rtag -d pmd_release_1_2_1 pmd
|
||||
cvs rtag -d pmd_release_1_2_2 pmd
|
||||
and then retag everything
|
||||
|
||||
ncftpput upload.sourceforge.net incoming/ pmd-src-1.2.1.zip pmd-bin-1.2.1.zip
|
||||
ncftpput upload.sourceforge.net incoming/ pmd-src-1.2.2.zip pmd-bin-1.2.2.zip
|
||||
|
||||
Go to Admin, Edit/Release Files, click on Add new release
|
||||
Paste stuff into the changelog/readme boxes
|
||||
Add the pmd-bin-1.2.1.zip file
|
||||
Add the pmd-src-1.2.1.zip file
|
||||
Add the pmd-bin-1.2.2.zip file
|
||||
Add the pmd-src-1.2.2.zip file
|
||||
Classify the file
|
||||
|
||||
Redo the web site
|
||||
|
@ -2,4 +2,4 @@
|
||||
set FILE=%1%
|
||||
set FORMAT=%2%
|
||||
set RULESETFILES=%3%
|
||||
java -cp ..\lib\pmd-1.2.1.jar;..\lib\jaxen-core-1.0-fcs.jar;..\lib\saxpath-1.0-fcs.jar net.sourceforge.pmd.PMD %FILE% %FORMAT% %RULESETFILES%
|
||||
java -cp ..\lib\pmd-1.2.2.jar;..\lib\jaxen-core-1.0-fcs.jar;..\lib\saxpath-1.0-fcs.jar net.sourceforge.pmd.PMD %FILE% %FORMAT% %RULESETFILES%
|
||||
|
@ -3,7 +3,7 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>pmd</id>
|
||||
<name>PMD</name>
|
||||
<currentVersion>1.2.1</currentVersion>
|
||||
<currentVersion>1.2.2</currentVersion>
|
||||
<organization>
|
||||
<name>Project Ultra*Log @ DARPA</name>
|
||||
<url>http://pmd.sourceforge.net/</url>
|
||||
@ -48,9 +48,9 @@ Gel, and Emacs. You can <a href="http://sourceforge.net/project/showfiles.php?g
|
||||
|
||||
<versions>
|
||||
<version>
|
||||
<id>1.2.1</id>
|
||||
<name>1.2.1</name>
|
||||
<tag>pmd_release_1_2_1</tag>
|
||||
<id>1.2.2</id>
|
||||
<name>1.2.2</name>
|
||||
<tag>pmd_release_1_2_2</tag>
|
||||
</version>
|
||||
<version>
|
||||
<id>dev</id>
|
||||
|
@ -393,5 +393,28 @@ public class Foo {
|
||||
</example>
|
||||
</rule>
|
||||
|
||||
<rule name="CloseConnectionRule"
|
||||
message="Ensures that Connection objects are always closed after use"
|
||||
class="net.sourceforge.pmd.rules.CloseConnectionRule">
|
||||
<description>
|
||||
Ensures that Connection objects are always closed after use
|
||||
</description>
|
||||
<priority>3</priority>
|
||||
<example>
|
||||
<![CDATA[
|
||||
public void foo() {
|
||||
Connection c = pool.getConnection();
|
||||
try {
|
||||
// do stuff
|
||||
} catch (SQLException ex) {
|
||||
// handle exception
|
||||
} finally {
|
||||
// oops, should close the connection using 'close'!
|
||||
// c.close();
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
|
||||
</ruleset>
|
||||
|
@ -6,29 +6,7 @@ These are new rules for the next release
|
||||
</description>
|
||||
|
||||
|
||||
<rule name="CloseConnectionRule"
|
||||
message="Ensures that Connection objects are always closed after use"
|
||||
class="net.sourceforge.pmd.rules.CloseConnectionRule">
|
||||
<description>
|
||||
Ensures that Connection objects are always closed after use
|
||||
</description>
|
||||
<priority>3</priority>
|
||||
<example>
|
||||
<![CDATA[
|
||||
public void foo() {
|
||||
Connection c = pool.getConnection();
|
||||
try {
|
||||
// do stuff
|
||||
} catch (SQLException ex) {
|
||||
// handle exception
|
||||
} finally {
|
||||
// oops, should close the connection using 'close'!
|
||||
// c.close();
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</example>
|
||||
</rule>
|
||||
|
||||
|
||||
</ruleset>
|
||||
|
||||
|
@ -110,7 +110,7 @@ public class CommandLineOptions {
|
||||
"3) A ruleset filename or a comma-delimited string of ruleset filenames" + PMD.EOL +
|
||||
PMD.EOL +
|
||||
"For example: " + PMD.EOL +
|
||||
"c:\\> java -jar pmd-1.2.1.jar c:\\my\\source\\code html rulesets/unusedcode.xml,rulesets/imports.xml" + PMD.EOL +
|
||||
"c:\\> java -jar pmd-1.2.2.jar c:\\my\\source\\code html rulesets/unusedcode.xml,rulesets/imports.xml" + PMD.EOL +
|
||||
PMD.EOL +
|
||||
"Optional arguments that may be put after the mandatory arguments are: " + PMD.EOL +
|
||||
"-debug: prints debugging information " + PMD.EOL +
|
||||
@ -118,7 +118,7 @@ public class CommandLineOptions {
|
||||
"-shortnames: prints shortened filenames in the report" + PMD.EOL +
|
||||
PMD.EOL +
|
||||
"For example: " + PMD.EOL +
|
||||
"c:\\> java -jar pmd-1.2.1.jar c:\\my\\source\\code html rulesets/unusedcode.xml,rulesets/imports.xml -jdk13 -debug" + PMD.EOL +
|
||||
"c:\\> java -jar pmd-1.2.2.jar c:\\my\\source\\code html rulesets/unusedcode.xml,rulesets/imports.xml -jdk13 -debug" + PMD.EOL +
|
||||
PMD.EOL;
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,11 @@
|
||||
<td valign="top">Places truncated filenames in the report. This can reduce your report file size by 15%-20%.</td>
|
||||
<td valign="top" align="center">No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">targetjdk13</td>
|
||||
<td valign="top">Whether to target JDK 1.3 (i.e., allowing usage of 'assert' as an identifier)</td>
|
||||
<td valign="top" align="center">No</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</subsection>
|
||||
|
@ -18,15 +18,15 @@ Now you'll need to either check out the source code or download the latest sourc
|
||||
<pre>
|
||||
[tom@hal building]$ ls -l
|
||||
total 5716
|
||||
-rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-1.2.1.zip
|
||||
[tom@hal building]$ unzip -q pmd-src-1.2.1.zip
|
||||
-rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-1.2.2.zip
|
||||
[tom@hal building]$ unzip -q pmd-src-1.2.2.zip
|
||||
[tom@hal building]$
|
||||
</pre>
|
||||
</p>
|
||||
<p>
|
||||
Now cd down into the pmd/etc directory:
|
||||
<pre>
|
||||
[tom@hal building]$ cd pmd-1.2.1/etc/
|
||||
[tom@hal building]$ cd pmd-1.2.2/etc/
|
||||
[tom@hal etc]$ ls -l | grep build.xml
|
||||
-rw-rw-r-- 1 tom tom 5736 Jun 19 15:36 build.xml
|
||||
[tom@hal etc]$
|
||||
@ -39,9 +39,9 @@ Now you'll need to either check out the source code or download the latest sourc
|
||||
Buildfile: build.xml
|
||||
|
||||
compile:
|
||||
[mkdir] Created dir: /home/tom/tmp/building/pmd-1.2.1/build
|
||||
[javac] Compiling 417 source files to /home/tom/tmp/building/pmd-1.2.1/build
|
||||
[javac] Note: /home/tom/tmp/building/pmd-1.2.1/regress/test/net/sourceforge/pmd/
|
||||
[mkdir] Created dir: /home/tom/tmp/building/pmd-1.2.2/build
|
||||
[javac] Compiling 417 source files to /home/tom/tmp/building/pmd-1.2.2/build
|
||||
[javac] Note: /home/tom/tmp/building/pmd-1.2.2/regress/test/net/sourceforge/pmd/
|
||||
RuleSetReadWriteTest.java uses or overrides a deprecated API.
|
||||
[javac] Note: Recompile with -deprecation for details.
|
||||
|
||||
|
@ -34,11 +34,11 @@
|
||||
<p>Download the latest binary distribution - i.e., pmd-bin-x.xx.zip</p>
|
||||
<p>Unzip it into any directory:
|
||||
<source>
|
||||
[tom@hal tmp]$ unzip -q pmd-bin-1.2.1.zip
|
||||
[tom@hal tmp]$ unzip -q pmd-bin-1.2.2.zip
|
||||
[tom@hal tmp]$ ls -l
|
||||
total 4640
|
||||
drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-1.2.1
|
||||
-rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-1.2.1.zip
|
||||
drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-1.2.2
|
||||
-rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-1.2.2.zip
|
||||
[tom@hal tmp]$
|
||||
</source>
|
||||
</p>
|
||||
|
@ -136,7 +136,7 @@ selecting the "Ask for Directory" checkbox.</p>
|
||||
|
||||
<P><UL>
|
||||
<LI>The Java Development Kit, version 1.3.1 (versions 1.3 and higher are acceptable) is properly installed into your machine, and exists in <CODE>D:\java\jdk_131\</CODE>. This means that <CODE>D:\java\jdk_131\bin\java.exe</CODE> exists.</LI>
|
||||
<LI>PMD version 1.2.1 exists in <CODE>D:\java\pmd-1.2.1\</CODE>. This means that <CODE>D:\java\pmd-1.2.1\lib\pmd-1.2.1.jar</CODE> (among other jar files in the same directory) exist.</LI>
|
||||
<LI>PMD version 1.2.2 exists in <CODE>D:\java\pmd-1.2.2\</CODE>. This means that <CODE>D:\java\pmd-1.2.2\lib\pmd-1.2.2.jar</CODE> (among other jar files in the same directory) exist.</LI>
|
||||
</UL></P>
|
||||
|
||||
<H5><U>To integrate into TextPad</U></H5>
|
||||
@ -152,7 +152,7 @@ selecting the "Ask for Directory" checkbox.</p>
|
||||
<LI>Expand the <B>Tools</B> branch (if not already) by clicking on the '<CODE>+</CODE>' directly to its left.</LI>
|
||||
<LI>In the expanded list, select <B>PMD directory</B>. This changes the right side of this dialog to the "tool" form.</LI>
|
||||
<LI>In the "tool" form, enter these parameters:<UL>
|
||||
<LI><B>Parameters:</B> <CODE>-classpath D:\java\pmd-1.2.1\lib\pmd-1.2.1.jar;D:\java\pmd-1.2.1\lib\jaxen-core-1.0-fcs.jar; D:\java\pmd-1.2.1\lib\saxpath-1.0-fcs.jar;D:\java\pmd-1.2.1\lib\xmlParserAPIs-2.0.2.jar; D:\java\pmd-1.2.1\lib\xercesImpl-2.0.2.jar net.sourceforge.pmd.PMD <I><B>$FileDir</B></I> net.sourceforge.pmd.renderers.TextPadRenderer E:\directory\my_pmd_ruleset.xml -debug</CODE>
|
||||
<LI><B>Parameters:</B> <CODE>-classpath D:\java\pmd-1.2.2\lib\pmd-1.2.2.jar;D:\java\pmd-1.2.2\lib\jaxen-core-1.0-fcs.jar; D:\java\pmd-1.2.2\lib\saxpath-1.0-fcs.jar;D:\java\pmd-1.2.2\lib\xmlParserAPIs-2.0.2.jar; D:\java\pmd-1.2.2\lib\xercesImpl-2.0.2.jar net.sourceforge.pmd.PMD <I><B>$FileDir</B></I> net.sourceforge.pmd.renderers.TextPadRenderer E:\directory\my_pmd_ruleset.xml -debug</CODE>
|
||||
<BR/>(<I>Eliminate the spaces following both '<CODE>jaxen-core-1.0-fcs.jar;</CODE>' and '<CODE>xmlParserAPIs-2.0.2.jar;</CODE>'. They are there to prevent the text from exceeding the right side of your screen</I>)</LI>
|
||||
<LI><B>Initial Folder:</B> <CODE>$FileDir</CODE></LI>
|
||||
<LI><B>Save all documents first:</B> <CODE>Checked</CODE></LI>
|
||||
@ -229,7 +229,7 @@ works OK. Here's how to set it up:</p>
|
||||
<li>Description: PMD doth help one clean the code</li>
|
||||
<li>Program: javaw</li>
|
||||
<li>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</li>
|
||||
<li>Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-1.2.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$ </li>
|
||||
<li>Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-1.2.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$ </li>
|
||||
<li>Working directory: c:\</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<li>Type run [filename] [report format] [ruleset file], i.e:</li>
|
||||
<br></br>
|
||||
<source>
|
||||
C:\tmp\pmd-1.2.1\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
||||
C:\tmp\pmd-1.2.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.2.1\pmd\etc>
|
||||
C:\tmp\pmd-1.2.2\pmd\etc>
|
||||
</source>
|
||||
<li>If you are using JDK 1.3 or you just want to run PMD without the batch file, you can do a:</li>
|
||||
<source>
|
||||
C:\data\pmd\pmd>java -cp lib\pmd-1.2.1.jar;lib\xercesImpl-2.0.2.jar;
|
||||
C:\data\pmd\pmd>java -cp lib\pmd-1.2.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
|
||||
|
Reference in New Issue
Block a user