Author: carlos
Date: Thu Aug 11 16:15:57 2005
New Revision: 231535
URL: http://svn.apache.org/viewcvs?rev=231535&view=rev
Log:
Added Cobertura aggregator
Added:
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturalipc.jelly
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturaloc.jelly
Modified:
maven/maven-1/plugins/trunk/dashboard/plugin.properties
maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml
Modified: maven/maven-1/plugins/trunk/dashboard/plugin.properties
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/plugin.properties?rev=231535&r1=231534&r2=231535&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/plugin.properties (original)
+++ maven/maven-1/plugins/trunk/dashboard/plugin.properties Thu Aug 11 16:15:57
2005
@@ -222,6 +222,22 @@
maven.dashboard.aggregator.jcoverageloc.description = JCoverage total lines of
code
maven.dashboard.aggregator.jcoverageloc.report = jcoverage/index.html
+# Properties for the Cobertura covered lines percent aggregator
+maven.dashboard.aggregator.coberturalipc.script =
${maven.dashboard.aggregators.dir}/coberturalipc.jelly
+maven.dashboard.aggregator.coberturalipc.artifact =
${maven.docs.dest}/cobertura/coverage.xml
+maven.dashboard.aggregator.coberturalipc.label = Cobertura %lines
+maven.dashboard.aggregator.coberturalipc.goal = maven-cobertura-plugin:report
+maven.dashboard.aggregator.coberturalipc.description = Cobertura covered lines
percentile
+maven.dashboard.aggregator.coberturalipc.report = cobertura/index.html
+
+# Properties for the Cobertura total lines aggregator
+maven.dashboard.aggregator.coberturaloc.script =
${maven.dashboard.aggregators.dir}/coberturaloc.jelly
+maven.dashboard.aggregator.coberturaloc.artifact =
${maven.docs.dest}/cobertura/coverage.xml
+maven.dashboard.aggregator.coberturaloc.label = Cobertura LOC
+maven.dashboard.aggregator.coberturaloc.goal = maven-cobertura-plugin:report
+maven.dashboard.aggregator.coberturaloc.description = Cobertura total lines of
code
+maven.dashboard.aggregator.coberturaloc.report = cobertura/index.html
+
# 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
Added:
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturalipc.jelly
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturalipc.jelly?rev=231535&view=auto
==============================================================================
---
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturalipc.jelly
(added)
+++
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturalipc.jelly
Thu Aug 11 16:15:57 2005
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+
+<!--
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<!--
+ ========================================================================
+ Cobertura aggregator. Extracts Cobertura %lines.
+ ========================================================================
+-->
+<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util">
+
+ <u:file var="artifactAsFile"
+ name="${maven.dashboard.aggregator.coberturalipc.artifact}"/>
+ <j:choose>
+ <j:when test="${artifactAsFile.exists()}">
+ <x:parse var="doc" xml="${artifactAsFile}"/>
+ <x:expr
select="floor(100*count($doc/coverage/packages/package/classes/class/lines/[EMAIL
PROTECTED]>0]) div
count($doc/coverage/packages/package/classes/class/lines/[EMAIL
PROTECTED]>0])+0.5)"/>
+ %
+ </j:when>
+ <j:otherwise>
+ <j:expr value="-"/>
+ </j:otherwise>
+ </j:choose>
+</j:jelly>
\ No newline at end of file
Added:
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturaloc.jelly
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturaloc.jelly?rev=231535&view=auto
==============================================================================
---
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturaloc.jelly
(added)
+++
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/aggregators/coberturaloc.jelly
Thu Aug 11 16:15:57 2005
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+
+<!--
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<!--
+ ========================================================================
+ Cobertura aggregator. Extracts Cobertura total code lines.
+ ========================================================================
+-->
+<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util">
+
+ <u:file var="artifactAsFile"
+ name="${maven.dashboard.aggregator.coberturaloc.artifact}"/>
+ <j:choose>
+ <j:when test="${artifactAsFile.exists()}">
+ <x:parse var="doc" xml="${artifactAsFile}"/>
+ <x:expr
select="count($doc/coverage/packages/package/classes/class/lines/[EMAIL
PROTECTED]>0])"/>
+ </j:when>
+ <j:otherwise>
+ <j:expr value="-"/>
+ </j:otherwise>
+ </j:choose>
+</j:jelly>
\ No newline at end of file
Modified: maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml?rev=231535&r1=231534&r2=231535&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml Thu Aug 11 16:15:57
2005
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.9-SNAPSHOT" date="in svn">
+ <action dev="carlos" type="add" issue="MPDASHBOARD-31">Added Cobertura
aggregator.</action>
<action dev="vmassol" type="fix" issue="MPDASHBOARD-27">
Properties <code>maven.dashboard.basedir</code>,
<code>maven.dashboard.includes</code>,
<code>maven.dashboard.excludes</code>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]