*** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@941 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
???? 2002 - ???:
|
||||||
|
|
||||||
September 12 2002 - 1.0rc2:
|
September 12 2002 - 1.0rc2:
|
||||||
Added new rules: JUnitSpellingRule, JUnitStaticSuiteRule, StringInstantiationRule
|
Added new rules: JUnitSpellingRule, JUnitStaticSuiteRule, StringInstantiationRule
|
||||||
Added new rulesets - junit, strings.
|
Added new rulesets - junit, strings.
|
||||||
|
@ -23,12 +23,16 @@ Prepare binary release:
|
|||||||
rmdir /q /s c:\tmp\pmd
|
rmdir /q /s c:\tmp\pmd
|
||||||
mkdir -p c:\tmp\pmd\etc
|
mkdir -p c:\tmp\pmd\etc
|
||||||
mkdir c:\tmp\pmd\lib
|
mkdir c:\tmp\pmd\lib
|
||||||
|
mkdir -p c:\tmp\pmd\docs\javadoc
|
||||||
copy run.bat c:\tmp\pmd\etc
|
copy run.bat c:\tmp\pmd\etc
|
||||||
copy build.xml c:\tmp\pmd\etc
|
copy build.xml c:\tmp\pmd\etc
|
||||||
copy cpdgui.bat c:\tmp\pmd\etc
|
copy cpdgui.bat c:\tmp\pmd\etc
|
||||||
|
copy readme.txt c:\tmp\pmd\etc
|
||||||
|
copy changelog.txt c:\tmp\pmd\etc
|
||||||
copy ..\lib\pmd-1.0rc2.jar c:\tmp\pmd\lib
|
copy ..\lib\pmd-1.0rc2.jar c:\tmp\pmd\lib
|
||||||
copy ..\lib\xmlParserAPIs-2.0.2.jar c:\tmp\pmd\lib
|
copy ..\lib\xmlParserAPIs-2.0.2.jar c:\tmp\pmd\lib
|
||||||
copy ..\lib\xercesImpl-2.0.2.jar c:\tmp\pmd\lib
|
copy ..\lib\xercesImpl-2.0.2.jar c:\tmp\pmd\lib
|
||||||
|
generate the web site and copy the javadoc into c:\tmp\pmd\docs\javadoc
|
||||||
Zip it up, rename it pmd-bin-1.0rc2.zip
|
Zip it up, rename it pmd-bin-1.0rc2.zip
|
||||||
|
|
||||||
All is well, so time to tag:
|
All is well, so time to tag:
|
||||||
|
67
pmd/etc/readme.txt
Normal file
67
pmd/etc/readme.txt
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
PMD
|
||||||
|
|
||||||
|
Contents:
|
||||||
|
Overview
|
||||||
|
Running PMD from the command-line on Win32
|
||||||
|
Running PMD from the command-line on Unix
|
||||||
|
|
||||||
|
|
||||||
|
OVERVIEW
|
||||||
|
PMD is a Java source code analysis tool. It finds unused variables, empty catch blocks,
|
||||||
|
unnecessary object creation, and so forth.
|
||||||
|
|
||||||
|
|
||||||
|
HOW TO RUN PMD FROM THE COMMAND LINE (WIN32)
|
||||||
|
-download the binary release
|
||||||
|
-unzip it somewhere
|
||||||
|
-cd into the pmd\etc\ directory
|
||||||
|
|
||||||
|
C:\tmp\tmp_pmd>cd pmd\etc
|
||||||
|
C:\tmp\tmp_pmd\pmd\etc>
|
||||||
|
|
||||||
|
-run PMD on a Java source file
|
||||||
|
|
||||||
|
C:\tmp\tmp_pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java html rulesets/unusedcode.xml
|
||||||
|
<html><head><title>PMD</title></head><body>
|
||||||
|
<table><tr>
|
||||||
|
<th>File</th><th>Line</th><th>Problem</th></tr>
|
||||||
|
<tr>
|
||||||
|
<td>c:\data\pmd\pmd\test-data\Unused1.java</td>
|
||||||
|
<td>5</td>
|
||||||
|
<td>Avoid unused local variables such as 'fr'</td>
|
||||||
|
</tr>
|
||||||
|
</table></body></html>
|
||||||
|
C:\tmp\tmp_pmd\pmd\etc>
|
||||||
|
|
||||||
|
|
||||||
|
HOW TO RUN PMD FROM THE COMMAND LINE (UNIX)
|
||||||
|
-download the binary release
|
||||||
|
-unzip it
|
||||||
|
|
||||||
|
[build@ul020-dmz tmp_pmd]$ unzip -q pmd-bin-1.0rc2.zip
|
||||||
|
|
||||||
|
-cd into the pmd/etc/ directory
|
||||||
|
|
||||||
|
[build@ul020-dmz tmp_pmd]$ cd pmd/etc/
|
||||||
|
|
||||||
|
-run PMD on a Java source file
|
||||||
|
|
||||||
|
[build@ul020-dmz etc]$ java -jar ../lib/pmd-1.0rc2.jar Foo.java html rulesets/unusedcode.xml
|
||||||
|
<html><head><title>PMD</title></head><body>
|
||||||
|
<table><tr>
|
||||||
|
<th>File</th><th>Line</th><th>Problem</th></tr>
|
||||||
|
<tr>
|
||||||
|
<td>Foo.java</td>
|
||||||
|
<td>48</td>
|
||||||
|
<td>Avoid unused private fields such as '_tasks'</td>
|
||||||
|
</tr>
|
||||||
|
</table></body></html>
|
||||||
|
[build@ul020-dmz etc]$
|
||||||
|
|
||||||
|
-if you send in a directory as the first parameter, PMD will run recursively on all files and subdirectories
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user