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:
parent
8cd968fba1
commit
9eaf525fc6
@ -167,13 +167,16 @@
|
|||||||
</j:choose>
|
</j:choose>
|
||||||
|
|
||||||
<!-- Run JSL to transform the report into XDOC -->
|
<!-- 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>
|
<echo>Converting the PMD report to xdoc ...</echo>
|
||||||
|
|
||||||
<doc:jsl
|
<doc:jsl
|
||||||
input="${maven.build.dir}/pmd-raw-report.xml"
|
input="${maven.build.dir}/pmd-raw-report.xml"
|
||||||
output="pmd-report.xml"
|
output="pmd-report.xml"
|
||||||
stylesheet="${plugin.resources}/pmd.jsl"
|
stylesheet="${stylesheet}"
|
||||||
outputMode="xml"
|
outputMode="xml"
|
||||||
prettyPrint="true"
|
prettyPrint="true"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -52,3 +52,6 @@ maven.pmd.failonruleviolation = false
|
|||||||
|
|
||||||
# JDK target
|
# JDK target
|
||||||
maven.pmd.targetjdk=${maven.compile.source}
|
maven.pmd.targetjdk=${maven.compile.source}
|
||||||
|
|
||||||
|
# JSL stylesheet
|
||||||
|
maven.pmd.stylesheet = ${plugin.resources}/pmd.jsl
|
||||||
@ -25,6 +25,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.10-SNAPSHOT" date="In SVN">
|
<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">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>
|
<action dev="aheritier" type="update">Upgrade to pmd-3.7.</action>
|
||||||
</release>
|
</release>
|
||||||
|
|||||||
@ -122,6 +122,14 @@
|
|||||||
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>
|
</td>
|
||||||
</tr>
|
</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>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user