forked from phoedos/pmd
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:
parent
14638d5002
commit
d0a5754717
@ -11,17 +11,20 @@
|
||||
<ul>
|
||||
<li>Build PMD by going to the etc directory and typing 'ant clean'</li>
|
||||
<li>Type run 'filename', i.e.:</li>
|
||||
<pre>
|
||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java
|
||||
C:\data\pmd\pmd\etc>set CLASSPATH=../build/
|
||||
C:\data\pmd\pmd\etc>java net.sourceforge.pmd.PMD c:\data\pmd\pmd\test-data\Unuse
|
||||
d1.java
|
||||
<pmd><file>
|
||||
<name>c:\data\pmd\pmd\test-data\Unused1.java</name><ruleviolation><line>5</line>
|
||||
<description>Found unused local variable 'fr'</description></ruleviolation></fil
|
||||
e>
|
||||
</pmd>
|
||||
</pre>
|
||||
<source>
|
||||
<![CDATA[
|
||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java
|
||||
C:\data\pmd\pmd\etc>set CLASSPATH=../build/
|
||||
C:\data\pmd\pmd\etc>java net.sourceforge.pmd.PMD c:\data\pmd\pmd\test-data\Unused1.java
|
||||
<pmd>
|
||||
<file>
|
||||
<name>c:\data\pmd\pmd\test-data\Unused1.java</name><ruleviolation><line>5</line>
|
||||
<description>Found unused local variable 'fr'</description></ruleviolation>
|
||||
</file>
|
||||
</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>
|
||||
</section>
|
||||
<section name="Running PMD via Ant">
|
||||
|
Loading…
x
Reference in New Issue
Block a user