Files
maven-plugins/dashboard/src/plugin-resources/aggregators/cserrors.jelly
T
vmassol 1e4d5620ce Added JUnit aggregators. Thanks to John D Taylor. John I had to change several things from your patch:
- remove tabs
- added missind documentation (xdoc)
- added missing tests
- it was not working. More specifically it would not work if the clover aggregators were used before the junit ones
- the goal caused by the junit aggregators was not the correct one... (you were calling "test" whereas it's the junit-report that must be called)

Please note that I had to modify both the Clover plugin and the junit-report one. So if you wish to use the junit aggregators you need to have the CVS versions of the these 2 plugins installed.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114431 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 19:11:31 +00:00

23 lines
747 B
XML

<?xml version="1.0"?>
<!--
========================================================================
Checkstyle error aggregator. Extracts error count from Checkstyle raw
XML file (does not count warnings).
========================================================================
-->
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util">
<u:file var="artifactAsFile"
name="${maven.dashboard.aggregator.cserrors.artifact}"/>
<j:choose>
<j:when test="${artifactAsFile.exists()}">
<x:parse var="doc" xml="${artifactAsFile}"/>
<x:expr select="count($doc//error[@severity = 'error'])"/>
</j:when>
<j:otherwise>
<j:expr value="-"/>
</j:otherwise>
</j:choose>
</j:jelly>