version changed to 4.2.2-SNAPSHOT in Java and 4.2.2 in other files

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6020 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2008-04-16 21:52:03 +00:00
parent cdb5525716
commit 33bcfed90f
24 changed files with 40 additions and 40 deletions

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/.. set TOPDIR=%~dp0/..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set OPTS= set OPTS=

View File

@ -1,5 +1,5 @@
TOPDIR=.. TOPDIR=..
VERSION=4.2.1 VERSION=4.2.2
PMDJAR=$TOPDIR/lib/pmd-$VERSION.jar PMDJAR=$TOPDIR/lib/pmd-$VERSION.jar
JARPATH=$TOPDIR/lib/asm-3.1.jar:$TOPDIR/lib/jaxen-1.1.1.jar JARPATH=$TOPDIR/lib/asm-3.1.jar:$TOPDIR/lib/jaxen-1.1.1.jar
OPTS= OPTS=

View File

@ -9,7 +9,7 @@
<property name="dir.target" value="target/" /> <property name="dir.target" value="target/" />
<property name="dir.rulesets" value="rulesets/" /> <property name="dir.rulesets" value="rulesets/" />
<property name="dir.regress" value="regress/" /> <property name="dir.regress" value="regress/" />
<property name="version" value="4.2.1" /> <property name="version" value="4.2.2" />
<property name="asm.version" value="3.1" /> <property name="asm.version" value="3.1" />
<property name="jaxen.version" value="1.1.1" /> <property name="jaxen.version" value="1.1.1" />

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/.. set TOPDIR=%~dp0/..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set OPTS=-Xmx512m set OPTS=-Xmx512m

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/.. set TOPDIR=%~dp0/..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set OPTS= set OPTS=

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/.. set TOPDIR=%~dp0/..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar set PMDJAR=%TOPDIR%/lib/pmd-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set OPTS= set OPTS=

View File

@ -20,7 +20,7 @@ elif [ $option = "all" ]; then
elif [ $option = "uploadcurrent" ]; then elif [ $option = "uploadcurrent" ]; then
echo "Generating and uploading maven artifacts" echo "Generating and uploading maven artifacts"
mvn -q source:jar javadoc:jar deploy mvn -q source:jar javadoc:jar deploy
mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.1.jar -DpomFile=pmd-jdk14-pom.xml mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.2.jar -DpomFile=pmd-jdk14-pom.xml
echo "Generating xdocs and uploading" echo "Generating xdocs and uploading"
ruby munge_rulesets.rb ruby munge_rulesets.rb
maven -qb pmd:rulesets-index xdoc:generate-from-pom maven -qb pmd:rulesets-index xdoc:generate-from-pom
@ -39,7 +39,7 @@ elif [ $option = "uploadcurrent" ]; then
elif [ $option = "upload" ]; then elif [ $option = "upload" ]; then
echo "Generating and uploading maven artifacts" echo "Generating and uploading maven artifacts"
mvn -q source:jar javadoc:jar deploy mvn -q source:jar javadoc:jar deploy
mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.1.jar -DpomFile=pmd-jdk14-pom.xml mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.2.2.jar -DpomFile=pmd-jdk14-pom.xml
echo "Uploading xdocs" echo "Uploading xdocs"
DOCS_FILE=docs.tar.gz DOCS_FILE=docs.tar.gz
cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/ cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/

View File

@ -1,6 +1,6 @@
Fixed in Subversion, and you can download a new pmd-4.2.1.jar file here: Fixed in Subversion, and you can download a new pmd-4.2.2.jar file here:
http://infoether.com/~tom/pmd-4.2.1.jar http://infoether.com/~tom/pmd-4.2.2.jar
that contains that fix. that contains that fix.

View File

@ -13,7 +13,7 @@
<offline-allowed/> <offline-allowed/>
<resources> <resources>
<j2se version="1.5+" max-heap-size="512M"/> <j2se version="1.5+" max-heap-size="512M"/>
<jar href="pmd-4.2.1.jar"/> <jar href="pmd-4.2.2.jar"/>
</resources> </resources>
<application-desc main-class="net.sourceforge.pmd.cpd.GUI"/> <application-desc main-class="net.sourceforge.pmd.cpd.GUI"/>
</jnlp> </jnlp>

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/../.. set TOPDIR=%~dp0/../..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar

View File

@ -1,5 +1,5 @@
TOPDIR=../.. TOPDIR=../..
VERSION=4.2.1 VERSION=4.2.2
PMDJAR=$TOPDIR/java14/lib/pmd14-$VERSION.jar PMDJAR=$TOPDIR/java14/lib/pmd14-$VERSION.jar
JARPATH=$TOPDIR/lib/asm-3.1.jar:$TOPDIR/lib/jaxen-1.1.1.jar JARPATH=$TOPDIR/lib/asm-3.1.jar:$TOPDIR/lib/jaxen-1.1.1.jar
RWPATH=$TOPDIR/java14/lib/retroweaver-rt-2.0.5.jar:$TOPDIR/java14/lib/backport-util-concurrent.jar RWPATH=$TOPDIR/java14/lib/retroweaver-rt-2.0.5.jar:$TOPDIR/java14/lib/backport-util-concurrent.jar

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/../.. set TOPDIR=%~dp0/../..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/../.. set TOPDIR=%~dp0/../..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar

View File

@ -1,6 +1,6 @@
@echo off @echo off
set TOPDIR=%~dp0/../.. set TOPDIR=%~dp0/../..
set VERSION=4.2.1 set VERSION=4.2.2
set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar set PMDJAR=%TOPDIR%/java14/lib/pmd14-%VERSION%.jar
set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar set JARPATH=%TOPDIR%/lib/asm-3.1.jar;%TOPDIR%/lib/jaxen-1.1.1.jar
set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar set RWPATH=%TOPDIR%/java14/lib/retroweaver-rt-2.0.5.jar;%TOPDIR%/java14/lib/backport-util-concurrent.jar

View File

@ -4,7 +4,7 @@
<groupId>pmd</groupId> <groupId>pmd</groupId>
<artifactId>pmd-jdk14</artifactId> <artifactId>pmd-jdk14</artifactId>
<name>PMD</name> <name>PMD</name>
<version>4.2.1</version> <version>4.2.2</version>
<description> <description>
<![CDATA[ <![CDATA[
<p>PMD scans Java source code and looks for potential problems like:</p> <p>PMD scans Java source code and looks for potential problems like:</p>

View File

@ -4,7 +4,7 @@
<groupId>pmd</groupId> <groupId>pmd</groupId>
<artifactId>pmd</artifactId> <artifactId>pmd</artifactId>
<name>PMD</name> <name>PMD</name>
<version>4.2.1</version> <version>4.2.2</version>
<description> <description>
<![CDATA[ <![CDATA[
<p>PMD scans Java source code and looks for potential problems like:</p> <p>PMD scans Java source code and looks for potential problems like:</p>

View File

@ -4,7 +4,7 @@
<pomVersion>3</pomVersion> <pomVersion>3</pomVersion>
<id>pmd</id> <id>pmd</id>
<name>PMD</name> <name>PMD</name>
<currentVersion>4.2.1</currentVersion> <currentVersion>4.2.2</currentVersion>
<organization> <organization>
<name>InfoEther</name> <name>InfoEther</name>
<url>http://pmd.sourceforge.net/</url> <url>http://pmd.sourceforge.net/</url>
@ -43,9 +43,9 @@
<versions> <versions>
<version> <version>
<id>4.2.1</id> <id>4.2.2</id>
<name>4.2.1</name> <name>4.2.2</name>
<tag>pmd_release_4_2_1</tag> <tag>pmd_release_4_2_2</tag>
</version> </version>
<version> <version>
<id>dev</id> <id>dev</id>

View File

@ -48,7 +48,7 @@ import net.sourceforge.pmd.util.FileFinder;
public class PMD { public class PMD {
public static final String EOL = System.getProperty("line.separator", "\n"); public static final String EOL = System.getProperty("line.separator", "\n");
public static final String VERSION = "4.2.1"; public static final String VERSION = "4.2.2-SNAPSHOT";
public static final String EXCLUDE_MARKER = "NOPMD"; public static final String EXCLUDE_MARKER = "NOPMD";
private static final Logger LOG = Logger.getLogger(PMD.class.getName()); private static final Logger LOG = Logger.getLogger(PMD.class.getName());

View File

@ -16,8 +16,8 @@
href="http://sourceforge.net" /> href="http://sourceforge.net" />
</links> </links>
<menu name="Overview"> <menu name="Overview">
<item name="Download PMD 4.2.1" href="http://sourceforge.net/project/showfiles.php?group_id=56262&amp;package_id=51441&amp;release_id=524515" /> <item name="Download PMD 4.2.2" href="http://sourceforge.net/project/showfiles.php?group_id=56262&amp;package_id=51441&amp;release_id=524515" />
<item name="What's new in PMD 4.2.1" href="http://sourceforge.net/project/shownotes.php?release_id=524515&amp;group_id=56262" /> <item name="What's new in PMD 4.2.2" href="http://sourceforge.net/project/shownotes.php?release_id=524515&amp;group_id=56262" />
<item name="PMD in the news" href="/news.html" /> <item name="PMD in the news" href="/news.html" />
<item name="PMD-related products and books" href="/products.html" /> <item name="PMD-related products and books" href="/products.html" />
<item name="Best practices" href="/bestpractices.html" /> <item name="Best practices" href="/bestpractices.html" />

View File

@ -18,15 +18,15 @@ Now you'll need to either check out the source code or download the latest sourc
<pre> <pre>
[tom@hal building]$ ls -l [tom@hal building]$ ls -l
total 5716 total 5716
-rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-4.2.1.zip -rw-rw-r-- 1 tom tom 5837216 Jul 17 13:09 pmd-src-4.2.2.zip
[tom@hal building]$ unzip -q pmd-src-4.2.1.zip [tom@hal building]$ unzip -q pmd-src-4.2.2.zip
[tom@hal building]$ [tom@hal building]$
</pre> </pre>
</p> </p>
<p> <p>
Now cd down into the <code>pmd/bin</code> directory: Now cd down into the <code>pmd/bin</code> directory:
<pre> <pre>
[tom@hal building]$ cd pmd-4.2.1/bin/ [tom@hal building]$ cd pmd-4.2.2/bin/
[tom@hal bin]$ ls -l | grep build.xml [tom@hal bin]$ ls -l | grep build.xml
-rw-rw-r-- 1 tom tom 5736 Jun 19 15:36 build.xml -rw-rw-r-- 1 tom tom 5736 Jun 19 15:36 build.xml
[tom@hal bin]$ [tom@hal bin]$

View File

@ -34,11 +34,11 @@
<p>Download the latest binary distribution - i.e., pmd-bin-x.xx.zip</p> <p>Download the latest binary distribution - i.e., pmd-bin-x.xx.zip</p>
<p>Unzip it into any directory: <p>Unzip it into any directory:
<source> <source>
[tom@hal tmp]$ unzip -q pmd-bin-4.2.1.zip [tom@hal tmp]$ unzip -q pmd-bin-4.2.2.zip
[tom@hal tmp]$ ls -l [tom@hal tmp]$ ls -l
total 4640 total 4640
drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-4.2.1 drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-4.2.2
-rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-4.2.1.zip -rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-4.2.2.zip
[tom@hal tmp]$ [tom@hal tmp]$
</source> </source>
</p> </p>

View File

@ -118,7 +118,7 @@
<ul> <ul>
<li>Name: PMD </li> <li>Name: PMD </li>
<li>Kind: Tool for directories</li> <li>Kind: Tool for directories</li>
<li>Executable: /Applications/pmd-4.2.1/bin/pmd.sh</li> <li>Executable: /Applications/pmd-4.2.2/bin/pmd.sh</li>
<li>Arguments: $DIRECTORY_PATH$ emacs $USER_ARGUMENTS$</li> <li>Arguments: $DIRECTORY_PATH$ emacs $USER_ARGUMENTS$</li>
</ul> </ul>
</ul> </ul>
@ -217,7 +217,7 @@ try deleting the ruleset.xml file in the .metadata/plugins/net.sourceforge.pmd.e
<li>Menu: Select the "Main menu", "Project views", "Editor menu", and "Search results" checkboxes.</li> <li>Menu: Select the "Main menu", "Project views", "Editor menu", and "Search results" checkboxes.</li>
<li>Program: $JDKPath$\bin\java.exe</li> <li>Program: $JDKPath$\bin\java.exe</li>
<li>For the next parameter you'll need to plug in the location of your PMD installation and the rulesets you want to use</li> <li>For the next parameter you'll need to plug in the location of your PMD installation and the rulesets you want to use</li>
<li>Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-4.2.1.jar;c:\pmd\lib\asm-3.1.jar;c:\pmd\lib\jaxen-1.1.1.jar net.sourceforge.pmd.PMD "$FilePath$" ideaj unusedcode,imports "$Sourcepath$" $FileClass$.method $FileName$ </li> <li>Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-4.2.2.jar;c:\pmd\lib\asm-3.1.jar;c:\pmd\lib\jaxen-1.1.1.jar net.sourceforge.pmd.PMD "$FilePath$" ideaj unusedcode,imports "$Sourcepath$" $FileClass$.method $FileName$ </li>
</ul> </ul>
</ul> </ul>
<p>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 <p>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
@ -337,7 +337,7 @@ selecting the "Ask for Directory" checkbox.</p>
<H5><U>Assumptions</U></H5> <H5><U>Assumptions</U></H5>
<P><UL> <P><UL>
<LI>The Java Development Kit, version 1.4.2 (versions 1.4 and higher are acceptable) is properly installed into your machine, and exists in <CODE>D:\java\jdk_142\</CODE>. This means that <CODE>D:\java\jdk_142\bin\java.exe</CODE> exists.</LI> <LI>The Java Development Kit, version 1.4.2 (versions 1.4 and higher are acceptable) is properly installed into your machine, and exists in <CODE>D:\java\jdk_142\</CODE>. This means that <CODE>D:\java\jdk_142\bin\java.exe</CODE> exists.</LI>
<LI>PMD version 4.2.1 exists in <CODE>D:\java\pmd-4.2.1\</CODE>. This means that <CODE>D:\java\pmd-4.2.1\lib\pmd-4.2.1.jar</CODE> (among other jar files in the same directory) exist.</LI> <LI>PMD version 4.2.2 exists in <CODE>D:\java\pmd-4.2.2\</CODE>. This means that <CODE>D:\java\pmd-4.2.2\lib\pmd-4.2.2.jar</CODE> (among other jar files in the same directory) exist.</LI>
</UL></P> </UL></P>
<H5><U>To integrate into TextPad</U></H5> <H5><U>To integrate into TextPad</U></H5>
<P><OL> <P><OL>
@ -351,7 +351,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>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 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>In the "tool" form, enter these parameters:<UL>
<LI><B>Parameters:</B> <CODE>-classpath D:\java\pmd-4.2.1\lib\pmd-4.2.1.jar;D:\java\pmd-4.2.1\lib\asm-3.1.jar;D:\java\pmd-4.2.1\lib\jaxen-1.1.1.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-4.2.2\lib\pmd-4.2.2.jar;D:\java\pmd-4.2.2\lib\asm-3.1.jar;D:\java\pmd-4.2.2\lib\jaxen-1.1.1.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 '<CODE>jaxen-1.1.1.jar;</CODE>' and '<CODE>asm-3.1.jar;</CODE>'. They are there to prevent the text from exceeding the right side of your screen</I>)</LI> <BR/>(<I>Eliminate the spaces following '<CODE>jaxen-1.1.1.jar;</CODE>' and '<CODE>asm-3.1.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>Initial Folder:</B> <CODE>$FileDir</CODE></LI>
<LI><B>Save all documents first:</B> <CODE>Checked</CODE></LI> <LI><B>Save all documents first:</B> <CODE>Checked</CODE></LI>

View File

@ -13,8 +13,8 @@
href="http://sourceforge.net" /> href="http://sourceforge.net" />
</links> </links>
<menu name="Overview"> <menu name="Overview">
<item name="Download PMD 4.2.1" href="http://sourceforge.net/project/showfiles.php?group_id=56262&amp;package_id=51441&amp;release_id=591563" /> <item name="Download PMD 4.2.2" href="http://sourceforge.net/project/showfiles.php?group_id=56262&amp;package_id=51441&amp;release_id=591563" />
<item name="What's new in PMD 4.2.1" href="http://sourceforge.net/project/shownotes.php?release_id=591563&amp;group_id=56262" /> <item name="What's new in PMD 4.2.2" href="http://sourceforge.net/project/shownotes.php?release_id=591563&amp;group_id=56262" />
<item name="PMD in the news" href="/news.html" /> <item name="PMD in the news" href="/news.html" />
<item name="PMD-related products and books" href="/products.html" /> <item name="PMD-related products and books" href="/products.html" />
<item name="Best practices" href="/bestpractices.html" /> <item name="Best practices" href="/bestpractices.html" />

View File

@ -13,7 +13,7 @@
<li>Type pmd [filename|jar or zip file containing source code|directory] [report format] [ruleset file], i.e:</li> <li>Type pmd [filename|jar or zip file containing source code|directory] [report format] [ruleset file], i.e:</li>
<br/> <br/>
<source> <source>
C:\tmp\pmd-4.2.1\pmd\bin&gt;pmd c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml C:\tmp\pmd-4.2.2\pmd\bin&gt;pmd c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
&lt;?xml version="1.0"?&gt;&lt;pmd&gt; &lt;?xml version="1.0"?&gt;&lt;pmd&gt;
&lt;file name="c:\data\pmd\pmd\test-data\Unused1.java"&gt; &lt;file name="c:\data\pmd\pmd\test-data\Unused1.java"&gt;
&lt;violation line="5" rule="UnusedLocalVariable"&gt; &lt;violation line="5" rule="UnusedLocalVariable"&gt;
@ -21,7 +21,7 @@ Avoid unused local variables such as 'fr'
&lt;/violation&gt; &lt;/violation&gt;
&lt;/file&gt;&lt;/pmd&gt; &lt;/file&gt;&lt;/pmd&gt;
C:\tmp\pmd-4.2.1\pmd\bin&gt; C:\tmp\pmd-4.2.2\pmd\bin&gt;
</source> </source>
<p>You can pass a file name, a directory name, or a jar or zip file name containing Java source code to PMD.</p> <p>You can pass a file name, a directory name, or a jar or zip file name containing Java source code to PMD.</p>
<p>Also, the PMD binary distribution includes the ruleset files <p>Also, the PMD binary distribution includes the ruleset files
@ -31,7 +31,7 @@ C:\tmp\pmd-4.2.1\pmd\bin&gt;
<li>If you are want to run PMD without the batch file, you can do a:</li> <li>If you are want to run PMD without the batch file, you can do a:</li>
<source> <source>
C:\data\pmd\pmd>java -cp lib\pmd-4.2.1.jar;lib\jaxen-1.1.1.jar;lib\asm-3.1.jar C:\data\pmd\pmd>java -cp lib\pmd-4.2.2.jar;lib\jaxen-1.1.1.jar;lib\asm-3.1.jar
net.sourceforge.pmd.PMD net.sourceforge.pmd.PMD
c:\j2sdk1.4.1_01\src\java\lang xml c:\j2sdk1.4.1_01\src\java\lang xml
rulesets/imports.xml rulesets/imports.xml