Fix reports generation if maven.pmd.cpd.enable has the default value (false)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b95cd3497e
commit
f9eadf7ea2
@ -37,12 +37,14 @@
|
||||
pluginName="pmd"
|
||||
description="Verification of coding rules."
|
||||
link="pmd-report"/>
|
||||
<j:if test="${maven.pmd.cpd.enable}">
|
||||
<doc:registerReport
|
||||
name="CPD Report"
|
||||
pluginName=""
|
||||
description="Detection of copy-paste code."
|
||||
link="cpd-report"/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<!--
|
||||
@ -53,8 +55,10 @@
|
||||
<goal name="maven-pmd-plugin:deregister">
|
||||
<j:if test="${sourcesPresent}">
|
||||
<doc:deregisterReport name="PMD Report"/>
|
||||
<j:if test="${maven.pmd.cpd.enable}">
|
||||
<doc:deregisterReport name="CPD Report"/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<!--
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-pmd-plugin</id>
|
||||
<name>Maven PMD Plug-in</name>
|
||||
<currentVersion>1.3</currentVersion>
|
||||
<currentVersion>1.4-SNAPSHOT</currentVersion>
|
||||
<description>This plugin provides a more or less seamless integration with Maven and the PMD static source code analyzer.</description>
|
||||
<shortDescription>Maven Plugin for PMD</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/pmd/</url>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user