Prevent the plugin from failing if one <code>dashboard-single.xml</code> fails to be generated.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9eadf7ea2
commit
be3e5baa3e
@ -1,7 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
||||
* Copyright 2003-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.
|
||||
@ -17,7 +18,6 @@
|
||||
*/
|
||||
-->
|
||||
|
||||
|
||||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:m="jelly:maven"
|
||||
@ -91,19 +91,22 @@
|
||||
xmlns="dashboard">
|
||||
<dashboard>
|
||||
<j:forEach var="reactorProject" items="${reactorProjects}">
|
||||
<x:element name="project">
|
||||
<x:attribute name="name">${reactorProject.name}</x:attribute>
|
||||
<u:available
|
||||
file="${reactorProject.context.getVariable('maven.build.dir')}/dashboard-single.xml">
|
||||
|
||||
<!-- Extract all reports from the single dashboards -->
|
||||
<x:element name="project">
|
||||
<x:attribute name="name">${reactorProject.name}</x:attribute>
|
||||
|
||||
<!-- TODO: Find a way to not hardcode the dashboard data
|
||||
location -->
|
||||
<u:file var="dashboardAsFile"
|
||||
name="${reactorProject.context.getVariable('maven.build.dir')}/dashboard-single.xml"/>
|
||||
<x:parse var="doc" xml="${dashboardAsFile}"/>
|
||||
<x:copyOf select="$doc//aggregator"/>
|
||||
|
||||
</x:element>
|
||||
<!-- Extract all reports from the single dashboards -->
|
||||
|
||||
<!-- TODO: Find a way to not hardcode the dashboard data
|
||||
location -->
|
||||
<u:file var="dashboardAsFile"
|
||||
name="${reactorProject.context.getVariable('maven.build.dir')}/dashboard-single.xml"/>
|
||||
<x:parse var="doc" xml="${dashboardAsFile}"/>
|
||||
<x:copyOf select="$doc//aggregator"/>
|
||||
</x:element>
|
||||
</u:available>
|
||||
</j:forEach>
|
||||
</dashboard>
|
||||
</j:file>
|
||||
|
||||
@ -26,6 +26,10 @@
|
||||
<body>
|
||||
|
||||
<release version="1.3" date="in CVS">
|
||||
<action dev="vmassol" type="fix" due-to="Dominique Collette">
|
||||
Prevent the plugin from failing if one
|
||||
<code>dashboard-single.xml</code> fails to be generated.
|
||||
</action>
|
||||
<action dev="dion" type="update">
|
||||
Changed junit-report-1.4-SNAPSHOT to 1.4 release.
|
||||
</action>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user