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:
Tom Copeland 2002-06-25 13:32:16 +00:00
parent 14638d5002
commit d0a5754717

View File

@ -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
&lt;pmd&gt;&lt;file&gt;
&lt;name&gt;c:\data\pmd\pmd\test-data\Unused1.java&lt;/name&gt;&lt;ruleviolation&gt;&lt;line&gt;5&lt;/line&gt;
&lt;description&gt;Found unused local variable 'fr'&lt;/description&gt;&lt;/ruleviolation&gt;&lt;/fil
e&gt;
&lt;/pmd&gt;
</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">