*** empty log message ***

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@13 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland 2002-06-24 15:07:59 +00:00
parent 399c0d2673
commit 5a6cf7ad06
2 changed files with 49 additions and 0 deletions

46
pmd/docs/ant.html Normal file
View File

@ -0,0 +1,46 @@
<html>
<head><title>Ant and PMD</title></head>
<body>
<h3>PMD</h3>
<h3>Description</h3>
Runs a set of PMD rules on a set of files and generates a report.
<br>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Attribute</b></td>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">reportfile</td>
<td valign="top">The file to which the report is written.</td>
<td valign="top" align="center">Yes</td>
</tr>
<tr>
<td valign="top">verbose</td>
<td valign="top">Verbose output - just the name of each file processed
Defaults to the current directory.</td>
<td valign="top" align="center">Yes</td>
</tr>
<tr>
<td valign="top">rulesettype</td>
<td valign="top">The set of rules to use (all, general, cougaar)</td>
<td valign="top" align="center">Yes</td>
</tr>
</table>
<br>
<h3>Examples</h3>
<pre>
&lt;target name="pmd"&gt;
&lt;taskdef name="pmd" classname="com.infoether.pmd.PMDTask"/&gt;
&lt;pmd reportFile="c:\foo.txt" verbose="false" rulesettype="general"&gt;
&lt;fileset dir="c:\j2sdk1.4.0\src\"&gt;
&lt;include name="**/*.java"/&gt;
&lt;/fileset&gt;
&lt;/pmd&gt;
&lt;/target&gt;
</pre>
</body>
</html>

View File

@ -10,6 +10,9 @@
<li>Unnecessary object creation (i.e., 'new Integer(5).toString()' rather than 'Integer.toString(5)')
</ul>
<p>There aren't any releases yet, but you can check out the source code and whatnot <a href="http://sourceforge.net/projects/pmd/">here</a>.
<p><b>Usage</b>
<br>
<a href="ant.html">Here's</a> the Ant task documentation.
<p><b>Credits</b>
<br>Thanks to Sourceforge for hosting <a href="http://sf.net/projects/pmd/">this project</a>
<br>Thanks to <a href="http://www.webgain.com/products/java_cc/">Webgain</a> for hosting JavaCC.