Default value for the target jdk was set correctly
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@374791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
PMD Plugin. Generate PMD reports using the PMD framework.
|
PMD Plugin. Generate PMD reports using the PMD framework.
|
||||||
=============================================================================
|
=============================================================================
|
||||||
-->
|
-->
|
||||||
<project xmlns:j="jelly:core" xmlns:doc="doc" xmlns:ant="jelly:ant" xmlns:util="jelly:util">
|
<project xmlns:j="jelly:core" xmlns:doc="doc" xmlns:ant="jelly:ant" xmlns:util="jelly:util" xmlns:maven="jelly:maven">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
========================================================================
|
========================================================================
|
||||||
@@ -114,12 +114,14 @@
|
|||||||
|
|
||||||
<j:choose>
|
<j:choose>
|
||||||
<j:when test="${sourcesPresent == 'true'}">
|
<j:when test="${sourcesPresent == 'true'}">
|
||||||
|
<maven:get var="defaultTargetJdk" plugin="maven-java-plugin" property="maven.compile.source"/>
|
||||||
|
<maven:property var="targetjdk" name="maven.pmd.targetjdk" defaultValue="defaultTargetJdk"/>
|
||||||
<pmd
|
<pmd
|
||||||
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}">
|
targetjdk="${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}"
|
||||||
|
|||||||
@@ -51,4 +51,4 @@ maven.pmd.failonerror = false
|
|||||||
maven.pmd.failonruleviolation = false
|
maven.pmd.failonruleviolation = false
|
||||||
|
|
||||||
# JDK target
|
# JDK target
|
||||||
maven.pmd.targetjdk = ${maven.compile.source}
|
maven.pmd.targetjdk=${maven.compile.source}
|
||||||
Reference in New Issue
Block a user