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,11 +37,13 @@
|
|||||||
pluginName="pmd"
|
pluginName="pmd"
|
||||||
description="Verification of coding rules."
|
description="Verification of coding rules."
|
||||||
link="pmd-report"/>
|
link="pmd-report"/>
|
||||||
<doc:registerReport
|
<j:if test="${maven.pmd.cpd.enable}">
|
||||||
name="CPD Report"
|
<doc:registerReport
|
||||||
pluginName=""
|
name="CPD Report"
|
||||||
description="Detection of copy-paste code."
|
pluginName=""
|
||||||
link="cpd-report"/>
|
description="Detection of copy-paste code."
|
||||||
|
link="cpd-report"/>
|
||||||
|
</j:if>
|
||||||
</j:if>
|
</j:if>
|
||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
@ -53,7 +55,9 @@
|
|||||||
<goal name="maven-pmd-plugin:deregister">
|
<goal name="maven-pmd-plugin:deregister">
|
||||||
<j:if test="${sourcesPresent}">
|
<j:if test="${sourcesPresent}">
|
||||||
<doc:deregisterReport name="PMD Report"/>
|
<doc:deregisterReport name="PMD Report"/>
|
||||||
<doc:deregisterReport name="CPD Report"/>
|
<j:if test="${maven.pmd.cpd.enable}">
|
||||||
|
<doc:deregisterReport name="CPD Report"/>
|
||||||
|
</j:if>
|
||||||
</j:if>
|
</j:if>
|
||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<pomVersion>3</pomVersion>
|
<pomVersion>3</pomVersion>
|
||||||
<id>maven-pmd-plugin</id>
|
<id>maven-pmd-plugin</id>
|
||||||
<name>Maven PMD Plug-in</name>
|
<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>
|
<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>
|
<shortDescription>Maven Plugin for PMD</shortDescription>
|
||||||
<url>http://maven.apache.org/reference/plugins/pmd/</url>
|
<url>http://maven.apache.org/reference/plugins/pmd/</url>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user