Luckily it is "straight out-of-the-box xpath" :-)

Actually we're using the xml jelly tags which themselves use Jaxen for all
XPath operations.

Here is a typical aggregator:

<u:file var="artifactAsFile" 
    name="${maven.dashboard.aggregator.cloverloc.artifact}"/>
<j:choose>
  <j:when test="${artifactAsFile.exists()}">
    <x:parse var="doc" xml="${artifactAsFile}"/>
    <x:expr select="string($doc/coverage/project/metrics/@loc)"/>
  </j:when>
  <j:otherwise>
    <j:expr value="-"/>
  </j:otherwise>
</j:choose>

Quite simple.

Actually I have some possible plans to make the dashboard a real Java
project (full Java API) and have the Maven plugin use that project. I have
no idea when this would happen though...

-Vincent
 
> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> Sent: vendredi 26 novembre 2004 18:18
> To: Maven Developers List
> Subject: Use of xpath in dashboard plugin
> 
> Vincent,
> 
> I was wondering if the way you select blobs to aggregate is straight
> out-of-the-box xpath or some special Jelly goop? I ask because at my
> current gig I'm using m2 and want to add some special handling to the m2
> reports to deal with aggregation. I'm looking at XPath because I could
> use something like XStream to extract bits and pieces in a stream
> fashion which would be very efficient. I'm just starting to look at this
> so I'm wondering how contained the XPath is in the m1 dashboard plugin
> because I would like to reuse it if possible.
> 
> --
> jvz.
> 
> Jason van Zyl
> [EMAIL PROTECTED]
> http://maven.apache.org
> 
> happiness is like a butterfly: the more you chase it, the more it will
> elude you, but if you turn your attention to other things, it will come
> and sit softly on your shoulder ...
> 
>  -- Thoreau
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to