rls preps

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4895 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2006-12-19 14:23:15 +00:00
parent ad6246cdd0
commit fd96acd61d
18 changed files with 58 additions and 58 deletions

View File

@ -1 +1 @@
java -cp ../build;../lib/asm-3.0.jar;../lib/backport-util-concurrent.jar;../lib/pmd-3.8.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer
java -cp ../build;../lib/asm-3.0.jar;../lib/backport-util-concurrent.jar;../lib/pmd-3.9.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer

View File

@ -1 +1 @@
java -cp ../build:../lib/asm-3.0.jar:../lib/backport-util-concurrent.jar:../lib/pmd-3.8.jar:../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer
java -cp ../build:../lib/asm-3.0.jar:../lib/backport-util-concurrent.jar:../lib/pmd-3.9.jar:../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.viewer.Viewer

View File

@ -7,7 +7,7 @@
<property name="dir.build" value="build\" />
<property name="dir.rulesets" value="rulesets\" />
<property name="dir.regress" value="regress\" />
<property name="version" value="3.8" />
<property name="version" value="3.9" />
<property name="keystore" value="${keystore.path}" />
<!--Settings-->

View File

@ -1 +1 @@
java -Xmx512m -cp ../lib/pmd-3.8.jar net.sourceforge.pmd.cpd.GUI
java -Xmx512m -cp ../lib/pmd-3.9.jar net.sourceforge.pmd.cpd.GUI

View File

@ -6,7 +6,7 @@ esac
FILE=$1
FORMAT=$2
RULESETFILES=$3
PMD_CLASSPATH=../lib/pmd-3.8.jar:../lib/jaxen-1.1-beta-10.jar:../lib/backport-util-concurrent.jar:../lib/asm-3.0.jar
PMD_CLASSPATH=../lib/pmd-3.9.jar:../lib/jaxen-1.1-beta-10.jar:../lib/backport-util-concurrent.jar:../lib/asm-3.0.jar
if $cygwin; then
FILE=`cygpath --windows "$FILE"`
PMD_CLASSPATH=`cygpath --path --windows "$PMD_CLASSPATH"`

View File

@ -1 +1 @@
java -cp ../build;../lib/asm-3.0.jar;../lib/backport-util-concurrent.jar;../lib/pmd-3.8.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.designer.Designer
java -cp ../build;../lib/asm-3.0.jar;../lib/backport-util-concurrent.jar;../lib/pmd-3.9.jar;../lib/jaxen-1.1-beta-10.jar net.sourceforge.pmd.util.designer.Designer

View File

@ -1,4 +1,4 @@
@echo off
java -cp "%~dp0\..\lib\pmd-3.8.jar;%~dp0\..\lib\jaxen-1.1-beta-10.jar;%~dp0\..\lib\asm-3.0.jar;%~dp0\..\lib\backport-util-concurrent.jar;%~dp0\..\lib\backport-util-concurrent.jar;%CLASSPATH%" net.sourceforge.pmd.PMD %*
java -cp "%~dp0\..\lib\pmd-3.9.jar;%~dp0\..\lib\jaxen-1.1-beta-10.jar;%~dp0\..\lib\asm-3.0.jar;%~dp0\..\lib\backport-util-concurrent.jar;%~dp0\..\lib\backport-util-concurrent.jar;%CLASSPATH%" net.sourceforge.pmd.PMD %*

View File

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

View File

@ -1,4 +1,4 @@
?????, 2006 - 3.9:
December 19, 2006 - 3.9:
New rules:
Basic ruleset: BigIntegerInstantiation, AvoidUsingOctalValues
Codesize ruleset: NPathComplexity, NcssTypeCount, NcssMethodCount, NcssConstructorCount

View File

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

View File

@ -1,10 +1,10 @@
update pmd.bat, designer.bat, bgastviewer.*, cygwin-run.sh, cpd.jnlp, cpdgui.bat, build.xml to point to pmd-3.8.jar
update PMD.java, xdocs/running.xml, compiling.xml, integrations.xml, installing.xml to reflect pmd-3.8
update pmd.bat, designer.bat, bgastviewer.*, cygwin-run.sh, cpd.jnlp, cpdgui.bat, build.xml to point to pmd-3.9.jar
update PMD.java, xdocs/running.xml, compiling.xml, integrations.xml, installing.xml to reflect pmd-3.9
update the release date in the changelog
update rulesets/rulesets.properties - add any new ruleset file names
update release number and tag name in project.xml
ensure all the new rules are listed in a rulesets/releases/38.xml file
ensure all the new rules are listed in a rulesets/releases/39.xml file
ant clean test
Check in everything
@ -25,57 +25,57 @@ cd ..
cd etc
Prepare binary release:
rm -rf ~/tmp/pmd-3.8
mkdir -p ~/tmp/pmd-3.8/etc
mkdir ~/tmp/pmd-3.8/bin
mkdir ~/tmp/pmd-3.8/lib
cp ../LICENSE.txt changelog.txt ~/tmp/pmd-3.8/etc
rm -rf ~/tmp/pmd-3.9
mkdir -p ~/tmp/pmd-3.9/etc
mkdir ~/tmp/pmd-3.9/bin
mkdir ~/tmp/pmd-3.9/lib
cp ../LICENSE.txt changelog.txt ~/tmp/pmd-3.9/etc
cd ../bin/
cp pmd.* cygwin-run.sh build.xml cpd.sh cpdgui.bat designer.* ~/tmp/pmd-3.8/bin
cp pmd.* cygwin-run.sh build.xml cpd.sh cpdgui.bat designer.* ~/tmp/pmd-3.9/bin
cd ../etc/
cp ../lib/pmd-3.8.jar ../lib/asm-3.0.jar ../lib/backport-util-concurrent.jar ../lib/jaxen-1.1-beta-10.jar ~/tmp/pmd-3.8/lib/
mkdir ~/tmp/pmd-3.8/etc/xslt
cp xslt/*.xslt xslt/*.js xslt/*.gif xslt/*.css ~/tmp/pmd-3.8/etc/xslt/
cp -R ../target/docs ~/tmp/pmd-3.8
cp ../lib/pmd-3.9.jar ../lib/asm-3.0.jar ../lib/backport-util-concurrent.jar ../lib/jaxen-1.1-beta-10.jar ~/tmp/pmd-3.9/lib/
mkdir ~/tmp/pmd-3.9/etc/xslt
cp xslt/*.xslt xslt/*.js xslt/*.gif xslt/*.css ~/tmp/pmd-3.9/etc/xslt/
cp -R ../target/docs ~/tmp/pmd-3.9
cd ~/tmp
zip -q -r pmd-bin-3.8.zip pmd-3.8/
zip -q -r pmd-bin-3.9.zip pmd-3.9/
cd -
Time to tag:
CVSROOT=:ext:tomcopeland@pmd.cvs.sourceforge.net:/cvsroot/pmd && export CVSROOT
cd ../../
cvs -q tag -D tomorrow "pmd_release_3_8" pmd
cvs -q tag -D tomorrow "pmd_release_3_9" pmd
Prepare source release:
rm -rf ~/tmp/pmd-3.8
rm -rf ~/tmp/pmd-src-3.8.zip
rm -rf ~/tmp/pmd-3.9
rm -rf ~/tmp/pmd-src-3.9.zip
cd pmd/bin/
ant jarsrc
cd ../../
rm -rf tmp/
mkdir tmp
cd tmp
cvs -q export -r pmd_release_3_8 pmd
mv pmd/ pmd-3.8
cvs -q export -r pmd_release_3_9 pmd
mv pmd/ pmd-3.9
cd ..
cp pmd/lib/pmd-src-3.8.jar tmp/pmd-3.8/lib/
mv tmp/pmd-3.8/ ~/tmp/
cp pmd/lib/pmd-3.8.jar ~/tmp/pmd-3.8/lib
cp -R pmd/target/docs ~/tmp/pmd-3.8/
cp pmd/lib/pmd-src-3.9.jar tmp/pmd-3.9/lib/
mv tmp/pmd-3.9/ ~/tmp/
cp pmd/lib/pmd-3.9.jar ~/tmp/pmd-3.9/lib
cp -R pmd/target/docs ~/tmp/pmd-3.9/
cd ~/tmp/
zip -q -r pmd-src-3.8.zip pmd-3.8/
zip -q -r pmd-src-3.9.zip pmd-3.9/
if you see a bug and fix it, you can delete the release using:
cvs rtag -d pmd_release_3_8 pmd
cvs rtag -d pmd_release_3_9 pmd
and then retag everything
ncftpput upload.sourceforge.net incoming/ pmd-src-3.8.zip pmd-bin-3.8.zip
ncftpput upload.sourceforge.net incoming/ pmd-src-3.9.zip pmd-bin-3.9.zip
Go to Admin, File Releases, Add release
Paste stuff into the changelog/readme boxes
Add the pmd-bin-3.8.zip file
Add the pmd-src-3.8.zip file
Add the pmd-bin-3.9.zip file
Add the pmd-src-3.9.zip file
Classify the file
Click File Releases, Edit Release, set previous version to 'hidden'.

View File

@ -4,7 +4,7 @@
<pomVersion>3</pomVersion>
<id>pmd</id>
<name>PMD</name>
<currentVersion>3.8</currentVersion>
<currentVersion>3.9</currentVersion>
<organization>
<name>InfoEther</name>
<url>http://pmd.sourceforge.net/</url>
@ -43,9 +43,9 @@
<versions>
<version>
<id>3.8</id>
<name>3.8</name>
<tag>pmd_release_3_8</tag>
<id>3.9</id>
<name>3.9</name>
<tag>pmd_release_3_9</tag>
</version>
<version>
<id>dev</id>

View File

@ -39,7 +39,7 @@ import java.util.zip.ZipFile;
public class PMD {
public static final String EOL = System.getProperty("line.separator", "\n");
public static final String VERSION = "3.8";
public static final String VERSION = "3.9";
public static final String EXCLUDE_MARKER = "NOPMD";

View File

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

View File

@ -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-3.8.zip
[tom@hal tmp]$ unzip -q pmd-bin-3.9.zip
[tom@hal tmp]$ ls -l
total 4640
drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-3.8
-rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-3.8.zip
drwxrwxr-x 5 tom tom 4096 Apr 17 16:38 pmd-3.9
-rw-rw-r-- 1 tom tom 4733312 Jun 9 15:44 pmd-bin-3.9.zip
[tom@hal tmp]$
</source>
</p>

View File

@ -118,7 +118,7 @@
<ul>
<li>Name: PMD </li>
<li>Kind: Tool for directories</li>
<li>Executable: /Applications/pmd-3.8/bin/pmd.sh</li>
<li>Executable: /Applications/pmd-3.9/bin/pmd.sh</li>
<li>Arguments: $DIRECTORY_PATH$ emacs $USER_ARGUMENTS$</li>
</ul>
</ul>
@ -216,7 +216,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>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>Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-3.8.jar;c:\pmd\lib\asm-3.0.jar;c:\pmd\lib\backport-util-concurrent.jar;c:\pmd\lib\jaxen-1.1-beta-10.jar net.sourceforge.pmd.PMD "$FilePath$" ideaj unusedcode,imports "$Sourcepath$" $FileClass$.method $FileName$ </li>
<li>Parameters: -cp %CLASSPATH%;c:\pmd\lib\pmd-3.9.jar;c:\pmd\lib\asm-3.0.jar;c:\pmd\lib\backport-util-concurrent.jar;c:\pmd\lib\jaxen-1.1-beta-10.jar net.sourceforge.pmd.PMD "$FilePath$" ideaj unusedcode,imports "$Sourcepath$" $FileClass$.method $FileName$ </li>
</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
@ -336,7 +336,7 @@ selecting the "Ask for Directory" checkbox.</p>
<H5><U>Assumptions</U></H5>
<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>PMD version 3.8 exists in <CODE>D:\java\pmd-3.8\</CODE>. This means that <CODE>D:\java\pmd-3.8\lib\pmd-3.8.jar</CODE> (among other jar files in the same directory) exist.</LI>
<LI>PMD version 3.9 exists in <CODE>D:\java\pmd-3.9\</CODE>. This means that <CODE>D:\java\pmd-3.9\lib\pmd-3.9.jar</CODE> (among other jar files in the same directory) exist.</LI>
</UL></P>
<H5><U>To integrate into TextPad</U></H5>
<P><OL>
@ -350,7 +350,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-3.8\lib\pmd-3.8.jar;D:\java\pmd-3.8\lib\asm-3.0.jar;D:\java\pmd-3.8\lib\backport-util-concurrent.jar;D:\java\pmd-3.8\lib\jaxen-1.1-beta-10.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-3.9\lib\pmd-3.9.jar;D:\java\pmd-3.9\lib\asm-3.0.jar;D:\java\pmd-3.9\lib\backport-util-concurrent.jar;D:\java\pmd-3.9\lib\jaxen-1.1-beta-10.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-beta-10.jar;</CODE>', '<CODE>asm-3.0.jar;</CODE>' and '<CODE>backport-util-concurrent.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>

View File

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

View File

@ -12,7 +12,7 @@
<li>Type pmd [filename|jar or zip file containing source code|directory] [report format] [ruleset file], i.e:</li>
<br></br>
<source>
C:\tmp\pmd-3.8\pmd\bin&gt;pmd c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
C:\tmp\pmd-3.9\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;file name="c:\data\pmd\pmd\test-data\Unused1.java"&gt;
&lt;violation line="5" rule="UnusedLocalVariable"&gt;
@ -20,7 +20,7 @@ Avoid unused local variables such as 'fr'
&lt;/violation&gt;
&lt;/file&gt;&lt;/pmd&gt;
C:\tmp\pmd-3.8\pmd\bin&gt;
C:\tmp\pmd-3.9\pmd\bin&gt;
</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>
@ -31,7 +31,7 @@ C:\tmp\pmd-3.8\pmd\bin&gt;
<li>If you are want to run PMD without the batch file, you can do a:</li>
<source>
C:\data\pmd\pmd>java -cp lib\pmd-3.8.jar;lib\jaxen-1.1-beta-10.jar;lib\asm-3.0.jar;lib\backport-util-concurrent.jar
C:\data\pmd\pmd>java -cp lib\pmd-3.9.jar;lib\jaxen-1.1-beta-10.jar;lib\asm-3.0.jar;lib\backport-util-concurrent.jar
net.sourceforge.pmd.PMD
c:\j2sdk1.4.1_01\src\java\lang xml
rulesets/imports.xml