From e9ab8a744e162b8ca1f543086b973320912b0de4 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Mon, 6 Nov 2006 14:52:27 +0000 Subject: [PATCH] Add an alternative jsl stylesheet. Thanks to James Dempsey. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@471752 13f79535-47bb-0310-9956-ffa450edef68 --- pmd/plugin.jelly | 1 + pmd/src/plugin-resources/pmd-priority.jsl | 263 ++++++++++++++++++++++ pmd/xdocs/changes.xml | 1 + pmd/xdocs/properties.xml | 3 + 4 files changed, 268 insertions(+) create mode 100644 pmd/src/plugin-resources/pmd-priority.jsl diff --git a/pmd/plugin.jelly b/pmd/plugin.jelly index 8af4b2fa..93cd1294 100644 --- a/pmd/plugin.jelly +++ b/pmd/plugin.jelly @@ -172,6 +172,7 @@ Converting the PMD report to xdoc ... + Using stylesheet: ${stylesheet} + + + + + + + + + + + + + PMD Results + + +
+

+ The following document contains the results of + PMD. +

+
+
+ + + + + + + + + + + +
FilesErrors
+ + + + + + + + + + + + + + + + + + ${breakdown} +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilesViolations
+ ${name} + + + + + + + + + + + + + + + + + ${breakdown} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PriViolationLine
+ + ${priority} + + + + ${htmlescape.getText(errorMessage)} - details... + + + + + + + + + + ${line} + + + ${line} + + +
+
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/pmd/xdocs/changes.xml b/pmd/xdocs/changes.xml index 81ceaf5b..c6b10bb4 100644 --- a/pmd/xdocs/changes.xml +++ b/pmd/xdocs/changes.xml @@ -25,6 +25,7 @@ + Add an alternative jsl stylesheet that includes priority information. Allow custom JSL stylesheet to be defined via a property. 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. Upgrade to pmd-3.7. diff --git a/pmd/xdocs/properties.xml b/pmd/xdocs/properties.xml index 2ba00644..ef780e41 100644 --- a/pmd/xdocs/properties.xml +++ b/pmd/xdocs/properties.xml @@ -128,6 +128,9 @@ A custom stylesheet to use for the report. Default is ${plugin.resources}/pmd.jsl. + An alternative stylesheet is supplied that includes + priority information of pmd violations. To use it, set + maven.pmd.stylesheet=${plugin.resources}/pmd-priority.jsl.