Author: michaelo
Date: Wed Nov 26 15:32:14 2014
New Revision: 1641834
URL: http://svn.apache.org/r1641834
Log:
[MPMD-170] Have targetJdk default to maven.compiler.target
Contributed by: Stevo Slavic
Modified:
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
Modified:
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java?rev=1641834&r1=1641833&r2=1641834&view=diff
==============================================================================
---
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
(original)
+++
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
Wed Nov 26 15:32:14 2014
@@ -80,11 +80,8 @@ public class PmdReport
/**
* The target JDK to analyze based on. Should match the target used in the
compiler plugin. Valid values are
* currently <code>1.3</code>, <code>1.4</code>, <code>1.5</code>,
<code>1.6</code> and <code>1.7</code>.
- * <p/>
- * <b>Note:</b> support for <code>1.6</code> was added in version 2.3 of
this plugin,
- * support for <code>1.7</code> was added in version 2.7 of this plugin.
*/
- @Parameter( property = "targetJdk" )
+ @Parameter( property = "targetJdk", defaultValue =
"${maven.compiler.target}" )
private String targetJdk;
/**