added page on running PMD
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@44 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@@ -11,17 +11,20 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Build PMD by going to the etc directory and typing 'ant clean'</li>
|
<li>Build PMD by going to the etc directory and typing 'ant clean'</li>
|
||||||
<li>Type run 'filename', i.e.:</li>
|
<li>Type run 'filename', i.e.:</li>
|
||||||
<pre>
|
<source>
|
||||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java
|
<![CDATA[
|
||||||
C:\data\pmd\pmd\etc>set CLASSPATH=../build/
|
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java
|
||||||
C:\data\pmd\pmd\etc>java net.sourceforge.pmd.PMD c:\data\pmd\pmd\test-data\Unuse
|
C:\data\pmd\pmd\etc>set CLASSPATH=../build/
|
||||||
d1.java
|
C:\data\pmd\pmd\etc>java net.sourceforge.pmd.PMD c:\data\pmd\pmd\test-data\Unused1.java
|
||||||
<pmd><file>
|
<pmd>
|
||||||
<name>c:\data\pmd\pmd\test-data\Unused1.java</name><ruleviolation><line>5</line>
|
<file>
|
||||||
<description>Found unused local variable 'fr'</description></ruleviolation></fil
|
<name>c:\data\pmd\pmd\test-data\Unused1.java</name><ruleviolation><line>5</line>
|
||||||
e>
|
<description>Found unused local variable 'fr'</description></ruleviolation>
|
||||||
</pmd>
|
</file>
|
||||||
</pre>
|
</pmd>
|
||||||
|
!>
|
||||||
|
</source>
|
||||||
|
<li>Notice that the output is in an XML format, so you can redirect it to a file and process it later or whatever</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<section name="Running PMD via Ant">
|
<section name="Running PMD via Ant">
|
||||||
|
Reference in New Issue
Block a user