MPDASHBOARD-22: Added aggregator totals to the HTML report.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@164229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2005-04-22 12:50:52 +00:00
parent b12eb6c0cd
commit 1cf551d437
3 changed files with 17 additions and 1 deletions

View File

@ -52,6 +52,19 @@
</x:forEach> </x:forEach>
</tr> </tr>
<jsl:applyTemplates/> <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> </table>
</section> </section>
</body> </body>

View File

@ -52,7 +52,7 @@
<!-- Verify number of rows --> <!-- Verify number of rows -->
<ant:echo>Check nb of rows in the report</ant:echo> <ant:echo>Check nb of rows in the report</ant:echo>
<x:set var="count" select="count($doc//body/section/table/tr)"/> <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 <!-- Verify number of columns. One column for the project name and one for the 28
aggregators --> aggregators -->

View File

@ -25,6 +25,9 @@
</properties> </properties>
<body> <body>
<release version="1.8-SNAPSHOT" date="in SVN"> <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"> <action dev="vmassol" type="update">
Default values for <code>maven.dashboard.basedir</code>, Default values for <code>maven.dashboard.basedir</code>,
<code>maven.dashboard.includes</code>, <code>maven.dashboard.excludes</code> <code>maven.dashboard.includes</code>, <code>maven.dashboard.excludes</code>