Update release docu, rename releases ruleset 514->520

This commit is contained in:
Andreas Dangel
2014-10-12 19:33:58 +02:00
parent 2584d7fbbd
commit 64f9b04811
3 changed files with 27 additions and 19 deletions

View File

@ -1,11 +1,11 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="514" <ruleset name="520"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description> <description>
This ruleset contains links to rules that are new in PMD v5.1.4 This ruleset contains links to rules that are new in PMD v5.2.0
</description> </description>
<rule ref="rulesets/jsp/basic.xml/NoUnsanitizedJSPExpression"/> <rule ref="rulesets/jsp/basic.xml/NoUnsanitizedJSPExpression"/>

View File

@ -720,7 +720,7 @@
<profile> <profile>
<id>pmd-release</id> <id>pmd-release</id>
<properties> <properties>
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}</pmd.website.baseurl> <pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
</properties> </properties>
</profile> </profile>
<profile> <profile>

View File

@ -28,7 +28,7 @@ $ git status
<ul> <ul>
<li>Ensure all the new rules are listed in a the proper file: <li>Ensure all the new rules are listed in a the proper file:
<source>src/main/resources/rulesets/releases/&lt;version&gt;.xml file.</source> <source>pmd-core/src/main/resources/rulesets/releases/&lt;version&gt;.xml file.</source>
</li> </li>
<li>Update version/release info in <strong>src/site/markdown/changelog.md</strong>.</li> <li>Update version/release info in <strong>src/site/markdown/changelog.md</strong>.</li>
<li>Update <strong>../pmd.sourceforge.net/.htaccess</strong> of our website, to redirect to the new version</li> <li>Update <strong>../pmd.sourceforge.net/.htaccess</strong> of our website, to redirect to the new version</li>
@ -36,17 +36,17 @@ $ git status
</ul> </ul>
<source> <source>
$ mvn clean verify post-site #(order of targets DOES matter) $ mvn clean install
</source> </source>
<p>Unzip and test manually (just to be on the safe side of the road):</p> <p>Unzip and test manually (just to be on the safe side of the road):</p>
<source> <source>
cd target; unzip pmd-bin-&lt;version&gt;.zip; cd pmd-bin-&lt;version&gt; cd pmd-dist/target; unzip pmd-bin-&lt;version&gt;.zip; cd pmd-bin-&lt;version&gt;
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R rulesets/java/unusedcode.xml ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R rulesets/java/unusedcode.xml
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R java-unusedcode ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R java-unusedcode
./bin/run.sh pmd -d ../../src/main/java -language java -f html -R rulesets/java/unusedcode.xml ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f html -R rulesets/java/unusedcode.xml
cd ..; cd .. cd ..; cd ../..
</source> </source>
<p>Check in all (version) changes to branch master:</p> <p>Check in all (version) changes to branch master:</p>
@ -157,8 +157,8 @@ Login info for 'pmd-site' must be defined in ~/.m2/settings.xml
<source> <source>
$ ssh your_sf_login,pmd@shell.sourceforge.net create $ ssh your_sf_login,pmd@shell.sourceforge.net create
... ...
$ cd target/checkout/pmd $ cd target/checkout/
$ mvn clean verify site-deploy -Psf-release # it's import to execute verify, so that pmd.jar is created and included in the zip packages $ mvn clean install site-deploy site:stage -Psf-release # it's import to execute install, so that all pmd-*.jars are created and included in the zip packages
... ...
$ ssh your_sf_login@shell.sourceforge.net "shutdown" $ ssh your_sf_login@shell.sourceforge.net "shutdown"
</source> </source>
@ -166,22 +166,30 @@ $ ssh your_sf_login@shell.sourceforge.net "shutdown"
<ul> <ul>
<li>Before you upload the zip files, unzip and test once (just to be on the safe side of the road): <li>Before you upload the zip files, unzip and test once (just to be on the safe side of the road):
<source> <source>
cd target; unzip pmd-bin-&lt;version&gt;.zip; cd pmd-bin-&lt;version&gt; $ cd pmd-dist/target; unzip pmd-bin-&lt;version&gt;.zip; cd pmd-bin-&lt;version&gt;
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R rulesets/java/unusedcode.xml $ ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R rulesets/java/unusedcode.xml
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R java-unusedcode $ ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R java-unusedcode
./bin/run.sh pmd -d ../../src/main/java -language java -f html -R rulesets/java/unusedcode.xml $ ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f html -R rulesets/java/unusedcode.xml
cd ..; cd .. $ cd ..; cd ../..
</source>
</li>
<li>While the site has been deployed to sourceforge, it's still usefull, to have it downloadable at once:
<source>
$ cd target
$ mv staging pmd-doc-&lt;version&gt;
$ zip -r pmd-doc-&lt;version&gt;.zip pmd-doc-&lt;version&gt;/
$ cd ..
</source> </source>
</li> </li>
<li>Upload the files to sourceforge's file section: <li>Upload the files to sourceforge's file section:
<source> <source>
$ rsync -avhP target/pmd-*-&lt;version&gt;.zip your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/&lt;version&gt;/ $ rsync -avhP pmd-dist/target/pmd-*-&lt;version&gt;.zip target/pmd-doc-&lt;version&gt;.zip your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/&lt;version&gt;/
$ rsync -avhP src/site/markdown/changelog.md your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/&lt;version&gt;/ReadMe.txt $ rsync -avhP src/site/markdown/changelog.md your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/&lt;version&gt;/ReadMe.txt
</source> </source>
</li> </li>
<li>Verify the MD5 sums on <a href="https://sourceforge.net/projects/pmd/files/pmd/">Files</a> and locally: <li>Verify the MD5 sums on <a href="https://sourceforge.net/projects/pmd/files/pmd/">Files</a> and locally:
<source> <source>
$ md5sum target/pmd-*-&lt;version&gt;.zip $ md5sum pmd-dist/target/pmd-*-&lt;version&gt;.zip target/pmd-doc-&lt;version&gt;.zip
</source> </source>
</li> </li>
<li>Go to <a href="https://sourceforge.net/projects/pmd/files/pmd/">Files</a>, to folder "pmd/&lt;version&gt;", <li>Go to <a href="https://sourceforge.net/projects/pmd/files/pmd/">Files</a>, to folder "pmd/&lt;version&gt;",