forked from phoedos/pmd
pmd: fix #1004 targetjdk isn't attribute of PMD task
This commit is contained in:
parent
ef7478c350
commit
d95d960de3
@ -46,11 +46,6 @@
|
||||
<td valign="top">Places truncated filenames in the report. This can reduce your report file size by 15%-20%.</td>
|
||||
<td valign="top" align="center">No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">targetjdk</td>
|
||||
<td valign="top">Target JDK 1.3, 1.4, 1.5, 1.6, 1.7 or jsp. "1.5" is the default.</td>
|
||||
<td valign="top" align="center">No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">failuresPropertyName</td>
|
||||
<td valign="top">A property name to plug the number of rule violations into when the task finishes</td>
|
||||
@ -104,12 +99,15 @@
|
||||
|
||||
<p><code>auxclasspath</code> nested element - extra classpath used for Type Resolution rules.</p>
|
||||
|
||||
<p><code>version</code> nested element - specify which version of JDK to (1.5, 1.6,...)</p>
|
||||
|
||||
<p><code>ruleset</code> nested element - another way to specify rulesets. Here's an example:</p>
|
||||
<source>
|
||||
<![CDATA[
|
||||
<target name="pmd">
|
||||
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/>
|
||||
<pmd shortFilenames="true">
|
||||
<version>1.6</version>
|
||||
<ruleset>rulesets/java/design.xml</ruleset>
|
||||
<ruleset>java-basic</ruleset>
|
||||
<formatter type="html" toFile="pmd_report.html" linkPrefix="http://pmd.sourceforge.net/xref/"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user