PR: MPPMD-19

Submitted by: Wim Deblauwe
Reviewed by: aheritier
Java language level not settable through plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@374779 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier 2006-02-03 23:13:53 +00:00
parent 754ee15ce8
commit 7911b3d832
4 changed files with 14 additions and 2 deletions

View File

@ -118,7 +118,8 @@
rulesetfiles="${maven.pmd.rulesetfiles}" rulesetfiles="${maven.pmd.rulesetfiles}"
printToConsole="${maven.pmd.console}" printToConsole="${maven.pmd.console}"
failonerror="${maven.pmd.failonerror}" failonerror="${maven.pmd.failonerror}"
failOnRuleViolation="${maven.pmd.failonruleviolation}"> failOnRuleViolation="${maven.pmd.failonruleviolation}"
targetjdk="${maven.pmd.targetjdk}">
<formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/> <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/>
<fileset dir="${pom.build.sourceDirectory}" <fileset dir="${pom.build.sourceDirectory}"
includes="${maven.pmd.includes}" includes="${maven.pmd.includes}"

View File

@ -49,3 +49,6 @@ maven.pmd.console = false
# Fail the build ? # Fail the build ?
maven.pmd.failonerror = false maven.pmd.failonerror = false
maven.pmd.failonruleviolation = false maven.pmd.failonruleviolation = false
# JDK target
maven.pmd.targetjdk = ${maven.compile.source}

View File

@ -25,6 +25,7 @@
</properties> </properties>
<body> <body>
<release version="1.8-SNAPSHOT" date="In SVN"> <release version="1.8-SNAPSHOT" date="In SVN">
<action dev="aheritier" type="add" issue="MPPMD-19" due-to="Wim Deblauwe">New property "maven.pmd.targetjdk" to define the target JDK.</action>
<action dev="aheritier" type="add">Add a link on each error to explain it.</action> <action dev="aheritier" type="add">Add a link on each error to explain it.</action>
<action dev="aheritier" type="add" issue="MPPMD-21">New properties "maven.pmd.failonerror" and "maven.pmd.failonruleviolation" to fail the build if any errors or problems are found.</action> <action dev="aheritier" type="add" issue="MPPMD-21">New properties "maven.pmd.failonerror" and "maven.pmd.failonruleviolation" to fail the build if any errors or problems are found.</action>
<action dev="aheritier" type="add" issue="MPPMD-13">New property "maven.pmd.console" to display pmd errors to the console.</action> <action dev="aheritier" type="add" issue="MPPMD-13">New property "maven.pmd.console" to display pmd errors to the console.</action>

View File

@ -115,6 +115,13 @@
Whether or not to fail the build if PMD finds any problems. Defaults to false. Whether or not to fail the build if PMD finds any problems. Defaults to false.
</td> </td>
</tr> </tr>
<tr>
<td>maven.pmd.targetjdk</td>
<td>Yes</td>
<td>
Target JDK 1.3, 1.4, or 1.5.. Defaults to ${maven.compile.source}.
</td>
</tr>
</table> </table>
</section> </section>
</body> </body>