You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by vm...@apache.org on 2005/04/22 14:50:53 UTC
svn commit: r164229 - in /maven/maven-1/plugins/trunk/dashboard:
src/plugin-resources/templates/dashboard.jsl src/plugin-test/maven.xml
xdocs/changes.xml
Author: vmassol
Date: Fri Apr 22 05:50:52 2005
New Revision: 164229
URL: http://svn.apache.org/viewcvs?rev=164229&view=rev
Log:
MPDASHBOARD-22: Added aggregator totals to the HTML report.
Modified:
maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/templates/dashboard.jsl
maven/maven-1/plugins/trunk/dashboard/src/plugin-test/maven.xml
maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml
Modified: maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/templates/dashboard.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/templates/dashboard.jsl?rev=164229&r1=164228&r2=164229&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/templates/dashboard.jsl (original)
+++ maven/maven-1/plugins/trunk/dashboard/src/plugin-resources/templates/dashboard.jsl Fri Apr 22 05:50:52 2005
@@ -52,6 +52,19 @@
</x:forEach>
</tr>
<jsl:applyTemplates/>
+
+ <!-- Display totals for all projects -->
+ <tr>
+ <td><b>Total</b></td>
+ <x:forEach var="aggregatorName" select="project[1]/aggregator/@name">
+ <td>
+ <b>
+ <x:expr select="sum(//aggregator[@name='${aggregatorName.value}'][not(text()='-')][text()])"/>
+ </b>
+ </td>
+ </x:forEach>
+ </tr>
+
</table>
</section>
</body>
Modified: maven/maven-1/plugins/trunk/dashboard/src/plugin-test/maven.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/src/plugin-test/maven.xml?rev=164229&r1=164228&r2=164229&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/src/plugin-test/maven.xml (original)
+++ maven/maven-1/plugins/trunk/dashboard/src/plugin-test/maven.xml Fri Apr 22 05:50:52 2005
@@ -52,7 +52,7 @@
<!-- Verify number of rows -->
<ant:echo>Check nb of rows in the report</ant:echo>
<x:set var="count" select="count($doc//body/section/table/tr)"/>
- <assert:assertEquals expected="4" value="${count.intValue().toString()}"/>
+ <assert:assertEquals expected="5" value="${count.intValue().toString()}"/>
<!-- Verify number of columns. One column for the project name and one for the 28
aggregators -->
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=164229&r1=164228&r2=164229&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml Fri Apr 22 05:50:52 2005
@@ -25,6 +25,9 @@
</properties>
<body>
<release version="1.8-SNAPSHOT" date="in SVN">
+ <action dev="vmassol" type="add" issue="MPDASHBOARD-22" due-to="Morten Kristiansen">
+ Added aggregator totals to the HTML report.
+ </action>
<action dev="vmassol" type="update">
Default values for <code>maven.dashboard.basedir</code>,
<code>maven.dashboard.includes</code>, <code>maven.dashboard.excludes</code>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org