evenisse 2004/03/12 01:42:29
Modified: pmd plugin.jelly project.xml
Log:
Fix reports generation if maven.pmd.cpd.enable has the default value (false)
Revision Changes Path
1.13 +10 -6 maven-plugins/pmd/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/pmd/plugin.jelly,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- plugin.jelly 4 Mar 2004 18:38:43 -0000 1.12
+++ plugin.jelly 12 Mar 2004 09:42:29 -0000 1.13
@@ -37,11 +37,13 @@
pluginName="pmd"
description="Verification of coding rules."
link="pmd-report"/>
- <doc:registerReport
- name="CPD Report"
- pluginName=""
- description="Detection of copy-paste code."
- link="cpd-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,7 +55,9 @@
<goal name="maven-pmd-plugin:deregister">
<j:if test="${sourcesPresent}">
<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>
</goal>
1.20 +1 -1 maven-plugins/pmd/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/maven-plugins/pmd/project.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- project.xml 10 Mar 2004 12:23:01 -0000 1.19
+++ project.xml 12 Mar 2004 09:42:29 -0000 1.20
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]