preps for release

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@558 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-07-30 20:10:59 +00:00
parent 58a3b67d73
commit f5f5fa3732
7 changed files with 28 additions and 26 deletions

@ -7,6 +7,7 @@
<property name="test-data" value="test-data\"/> <property name="test-data" value="test-data\"/>
<property name="regress" value="regress\"/> <property name="regress" value="regress\"/>
<property name="reports" value="reports\"/> <property name="reports" value="reports\"/>
<property name="version" value="0.8"/>
<target name="delete"> <target name="delete">
<delete dir="${build}"/> <delete dir="${build}"/>
@ -31,16 +32,17 @@
<include name="*.properties"/> <include name="*.properties"/>
</fileset> </fileset>
</copy> </copy>
<jar jarfile="${lib}\pmd-0.7.jar" basedir="${build}" excludes="test/**/*.class"/> <jar jarfile="${lib}\pmd-${version}.jar" basedir="${build}" excludes="test/**/*.class"/>
</target> </target>
<target name="pmd"> <target name="pmd">
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/>
<pmd reportFile="c:\jdk.html" rulesetfiles="rulesets/newrules.xml" format="html"> <pmd reportFile="c:\pmd.html" rulesetfiles="rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/imports.xml,rulesets/design.xml" format="html">
<!--<fileset dir="c:\data\pmd\pmd\src">--> <fileset dir="c:\data\pmd\pmd\src">
<fileset dir="c:\j2sdk1.4.0_01\src\com\sun\corba\se"> <!-- <fileset dir="c:\j2sdk1.4.0_01\src\com\sun\corba\se">-->
<!--<fileset dir="c:\j2sdk1.4.0_01\src\">--> <!--<fileset dir="c:\j2sdk1.4.0_01\src\">-->
<include name="**/*.java"/> <include name="**/*.java"/>
<exclude name="**/ast**/"/>
</fileset> </fileset>
</pmd> </pmd>
</target> </target>

@ -1,6 +1,7 @@
???? 2002 - 0.8: July 30 2002 - 0.8:
Added new rules: UnusedFormalParameterRule Added new rule: UnusedFormalParameterRule
Fixed bug 588083 - ForLoopsNeedBraces rule correctly handles a variety of for statement formats Fixed bug 588083 - ForLoopsNeedBraces rule correctly handles a variety of for statement formats
Added prototype of the copy and paste detector
July 25 2002 - 0.7: July 25 2002 - 0.7:
Added new rules: UnusedPrivateMethodRule, WhileLoopsMustUseBracesRule, ForLoopsMustUseBracesRule, LooseCouplingRule Added new rules: UnusedPrivateMethodRule, WhileLoopsMustUseBracesRule, ForLoopsMustUseBracesRule, LooseCouplingRule

@ -3,7 +3,6 @@ update the release date in the changelog
move rules from "newrules.xml" into a real ruleset file move rules from "newrules.xml" into a real ruleset file
update jar task to reflect pmd-0.8 update jar task to reflect pmd-0.8
update xdocs/running.xml to reflect pmd-0.8 update xdocs/running.xml to reflect pmd-0.8
update docs to mention GUI if it's in a presentable state
update release number in project.xml update release number in project.xml
set ANT_HOME=c:\ant set ANT_HOME=c:\ant

@ -1,5 +1,5 @@
@echo off @echo off
set CLASSPATH=../lib/pmd-0.7.jar set CLASSPATH=../lib/pmd-0.8.jar
set FILE=%1% set FILE=%1%
set FORMAT=%2% set FORMAT=%2%
set RULESETFILE=%3% set RULESETFILE=%3%

@ -5,22 +5,7 @@
These are new ones for the next release These are new ones for the next release
</description> </description>
<rule name="UnusedFormalParameter"
message="Avoid unused formal parameters such as ''{0}''"
class="net.sourceforge.pmd.rules.UnusedFormalParameterRule">
<description>
Avoid passing parameters to methods and then not using those parameters.
</description>
<example>
<![CDATA[
public class Foo {
private void bar(String howdy) {
// howdy is not used
}
]]>
</example>
</rule>
</ruleset> </ruleset>

@ -64,7 +64,22 @@ public class Something {
</rule> </rule>
<rule name="UnusedFormalParameter"
message="Avoid unused formal parameters such as ''{0}''"
class="net.sourceforge.pmd.rules.UnusedFormalParameterRule">
<description>
Avoid passing parameters to methods and then not using those parameters.
</description>
<example>
<![CDATA[
public class Foo {
private void bar(String howdy) {
// howdy is not used
}
]]>
</example>
</rule>
</ruleset> </ruleset>

@ -12,7 +12,7 @@
<li>Type run &lt;filename&gt; &lt;report format&gt;, &lt;rule set file&gt;i.e.:</li> <li>Type run &lt;filename&gt; &lt;report format&gt;, &lt;rule set file&gt;i.e.:</li>
<br></br> <br></br>
<pre> <pre>
C:\tmp\pmd-0.7\pmd\etc&gt;run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml C:\tmp\pmd-0.8\pmd\etc&gt;run 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;
@ -20,7 +20,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-0.7\pmd\etc&gt; C:\tmp\pmd-0.8\pmd\etc&gt;
</pre> </pre>
<br></br> <br></br>
<li>Notice that in this case the output is in XML, so you can redirect it to a file and XSLT it or whatever</li> <li>Notice that in this case the output is in XML, so you can redirect it to a file and XSLT it or whatever</li>
@ -29,7 +29,7 @@ C:\tmp\pmd-0.7\pmd\etc&gt;
<section name="Running PMD via Ant"> <section name="Running PMD via Ant">
<ul> <ul>
<li>Add a new Ant target to your build file - <a href="ant-task.html">here's</a> some examples.</li> <li>Add a new Ant target to your build file - <a href="ant-task.html">here's</a> some examples.</li>
<li>Make sure the pmd-0.7.jar file is on your classpath.</li> <li>Make sure the pmd-0.8.jar file is on your classpath.</li>
<li>Run Ant like you normally do.</li> <li>Run Ant like you normally do.</li>
</ul> </ul>
</section> </section>