Author: aheritier
Date: Fri Feb  3 15:13:53 2006
New Revision: 374779

URL: http://svn.apache.org/viewcvs?rev=374779&view=rev
Log:
PR: MPPMD-19
Submitted by: Wim Deblauwe
Reviewed by: aheritier
Java language level not settable through plugin

Modified:
    maven/maven-1/plugins/trunk/pmd/plugin.jelly
    maven/maven-1/plugins/trunk/pmd/plugin.properties
    maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml
    maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml

Modified: maven/maven-1/plugins/trunk/pmd/plugin.jelly
URL: 
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/plugin.jelly?rev=374779&r1=374778&r2=374779&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pmd/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/pmd/plugin.jelly Fri Feb  3 15:13:53 2006
@@ -118,7 +118,8 @@
           rulesetfiles="${maven.pmd.rulesetfiles}" 
           printToConsole="${maven.pmd.console}"
           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"/>
           <fileset dir="${pom.build.sourceDirectory}" 
             includes="${maven.pmd.includes}"

Modified: maven/maven-1/plugins/trunk/pmd/plugin.properties
URL: 
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/plugin.properties?rev=374779&r1=374778&r2=374779&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pmd/plugin.properties (original)
+++ maven/maven-1/plugins/trunk/pmd/plugin.properties Fri Feb  3 15:13:53 2006
@@ -48,4 +48,7 @@
 
 # Fail the build ?
 maven.pmd.failonerror = false
-maven.pmd.failonruleviolation = false
\ No newline at end of file
+maven.pmd.failonruleviolation = false
+
+# JDK target
+maven.pmd.targetjdk = ${maven.compile.source}
\ No newline at end of file

Modified: maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml
URL: 
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml?rev=374779&r1=374778&r2=374779&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml Fri Feb  3 15:13:53 2006
@@ -25,6 +25,7 @@
   </properties>
   <body>
     <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" 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>

Modified: maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml
URL: 
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml?rev=374779&r1=374778&r2=374779&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml (original)
+++ maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml Fri Feb  3 15:13:53 
2006
@@ -115,6 +115,13 @@
             Whether or not to fail the build if PMD finds any problems. 
Defaults to false.
           </td>
         </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>
     </section>
   </body>


Reply via email to