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:
aheritier
2006-02-04 00:01:46 +00:00
parent 6e8d7ca48d
commit 9d730f9fbc
2 changed files with 5 additions and 3 deletions

View File

@@ -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}"

View File

@@ -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}