From f07e53a5657b5a3874008081ac6d5db8be62960f Mon Sep 17 00:00:00 2001 From: vmassol Date: Tue, 28 Sep 2004 08:41:08 +0000 Subject: [PATCH] - Added new fbfiles aggregator that computes FindBugs total number of files with violations. (MPDASHBOARD-13) - Added new fbviolations aggregator that computes FindBugs total number of violations. (MPDASHBOARD-13) - Added percentage bar graphs to the report (MPDASHBOARD-3) git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116097 13f79535-47bb-0310-9956-ffa450edef68 --- dashboard/plugin.properties | 28 +++++++ .../src/plugin-resources/images/trans.gif | Bin 0 -> 43 bytes .../plugin-resources/templates/dashboard.jsl | 77 +++++++++++++++++- dashboard/src/plugin-test/maven.xml | 2 +- dashboard/xdocs/changes.xml | 11 +++ 5 files changed, 116 insertions(+), 2 deletions(-) create mode 100644 dashboard/src/plugin-resources/images/trans.gif diff --git a/dashboard/plugin.properties b/dashboard/plugin.properties index f8dd8201..f2cfe778 100644 --- a/dashboard/plugin.properties +++ b/dashboard/plugin.properties @@ -60,6 +60,19 @@ maven.dashboard.runreactor = true # aggregators. maven.dashboard.report.showempty = true +# Images used when generating the progress bar for the dashboard HTML color +# for left bar +maven.dashboard.report.bar.left = green + +# HTML color for right bar +maven.dashboard.report.bar.right = red + +# Image to set cells with (should be transparent) +maven.dashboard.report.bar.image = ${plugin.resources}/images/trans.gif +maven.dashboard.report.bar.height = 10 +maven.dashboard.report.bar.border = 0 +maven.dashboard.report.bar.displayLabel = true + # Properties for gathering dashboard data for a single project # ------------------------------------------------------------ @@ -189,3 +202,18 @@ maven.dashboard.aggregator.jcoverageloc.artifact = ${maven.build.dir}/jcoverage/ maven.dashboard.aggregator.jcoverageloc.label = JCoverage LOC maven.dashboard.aggregator.jcoverageloc.goal = maven-jcoverage-plugin:report maven.dashboard.aggregator.jcoverageloc.description = JCoverage total lines of code + +# Properties for the FindBugs file violations aggregator +maven.dashboard.aggregator.fbfiles.script = ${maven.dashboard.aggregators.dir}/fbfiles.jelly +maven.dashboard.aggregator.fbfiles.artifact = ${maven.build.dir}/findbugs-raw-report.xml +maven.dashboard.aggregator.fbfiles.label = FindBugs Files with Violations +maven.dashboard.aggregator.fbfiles.goal = maven-findbugs-plugin:report +maven.dashboard.aggregator.fbfiles.description = Number of files with FindBugs violations + +# Properties for the FindBugs violations aggregator +maven.dashboard.aggregator.fbviolations.script = ${maven.dashboard.aggregators.dir}/fbviolations.jelly +maven.dashboard.aggregator.fbviolations.artifact = ${maven.build.dir}/findbugs-raw-report.xml +maven.dashboard.aggregator.fbviolations.label = FindBugs Violations +maven.dashboard.aggregator.fbviolations.goal = maven-findbugs-plugin:report +maven.dashboard.aggregator.fbviolations.description = Number of FindBugs violations + diff --git a/dashboard/src/plugin-resources/images/trans.gif b/dashboard/src/plugin-resources/images/trans.gif new file mode 100644 index 0000000000000000000000000000000000000000..d794434481d0414bcfe6d6d73fc97045fa134b06 GIT binary patch literal 43 qcmZ?wbhEHbWMp7u_`m=H|NsA2{K>+|02I&x@j)^SOiVtE4Aub7RR?ka literal 0 HcmV?d00001 diff --git a/dashboard/src/plugin-resources/templates/dashboard.jsl b/dashboard/src/plugin-resources/templates/dashboard.jsl index b1b4586e..7a979ab6 100644 --- a/dashboard/src/plugin-resources/templates/dashboard.jsl +++ b/dashboard/src/plugin-resources/templates/dashboard.jsl @@ -25,6 +25,7 @@ xmlns:j="jelly:core" xmlns:jsl="jelly:jsl" xmlns:x="jelly:xml" + xmlns:u="jelly:util" xmlns="dummy" trim="false"> @@ -78,7 +79,81 @@ - + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + 0 + 0 + + + + + + + + + + ${percent} + ${percent}% + + + + + + + + + + 0 + 0 + + + + + + + + + + ${cpercent} + ${cpercent}% + + + + +
+
+
diff --git a/dashboard/src/plugin-test/maven.xml b/dashboard/src/plugin-test/maven.xml index 4623db7b..71e8c1e0 100644 --- a/dashboard/src/plugin-test/maven.xml +++ b/dashboard/src/plugin-test/maven.xml @@ -49,7 +49,7 @@ name="${maven.gen.docs}/dashboard-report.xml"/> - + diff --git a/dashboard/xdocs/changes.xml b/dashboard/xdocs/changes.xml index faa9b610..dab3588f 100644 --- a/dashboard/xdocs/changes.xml +++ b/dashboard/xdocs/changes.xml @@ -25,6 +25,17 @@ + + Added new fbfiles aggregator that computes FindBugs total + number of files with violations. + + + Added new fbviolations aggregator that computes FindBugs + total number of violations. + + + Added percentage bar graphs to the report. + Added new jcoverageloc aggregator that computes JCoverage total lines of code.