PR: MPPMD-27

Allow custom JSL stylesheet to be defined via a property.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@471736 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2006-11-06 13:55:27 +00:00
parent 8cd968fba1
commit 9eaf525fc6
4 changed files with 19 additions and 4 deletions

View File

@ -167,13 +167,16 @@
</j:choose>
<!-- Run JSL to transform the report into XDOC -->
<j:set var="stylesheet" value="${maven.pmd.stylesheet}"/>
<j:if test="${stylesheet == null or stylesheet.equals('')}">
<j:set var="stylesheet" value="${plugin.resources}/pmd.jsl"/>
</j:if>
<echo>Converting the PMD report to xdoc ...</echo>
<doc:jsl
input="${maven.build.dir}/pmd-raw-report.xml"
output="pmd-report.xml"
stylesheet="${plugin.resources}/pmd.jsl"
stylesheet="${stylesheet}"
outputMode="xml"
prettyPrint="true"
/>

View File

@ -51,4 +51,7 @@ maven.pmd.failonerror = false
maven.pmd.failonruleviolation = false
# JDK target
maven.pmd.targetjdk=${maven.compile.source}
maven.pmd.targetjdk=${maven.compile.source}
# JSL stylesheet
maven.pmd.stylesheet = ${plugin.resources}/pmd.jsl

View File

@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.10-SNAPSHOT" date="In SVN">
<action dev="ltheussl" type="add" issue="MPPMD-27">Allow custom JSL stylesheet to be defined via a property.</action>
<action dev="aheritier" type="update">Update dependencies to unify them between plugins. The following dependencies are updated : jaxen v1.0-FCS-full to 1.1-beta-9. The following dependencies are removed : saxpath.</action>
<action dev="aheritier" type="update">Upgrade to pmd-3.7.</action>
</release>

View File

@ -119,7 +119,15 @@
<td>maven.pmd.targetjdk</td>
<td>Yes</td>
<td>
Target JDK 1.3, 1.4, or 1.5.. Defaults to ${maven.compile.source}.
Target JDK 1.3, 1.4, or 1.5.. Defaults to ${maven.compile.source}.
</td>
</tr>
<tr>
<td>maven.pmd.stylesheet</td>
<td>Yes</td>
<td>
A custom stylesheet to use for the report.
Default is <code>${plugin.resources}/pmd.jsl</code>.
</td>
</tr>
</table>