speed up reactor using the new collectOnly
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
393d5ff7b8
commit
ac1c4859a7
@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
/*
|
/*
|
||||||
* Copyright 2001-2004 The Apache Software Foundation.
|
* Copyright 2001-2004 The Apache Software Foundation.
|
||||||
@ -17,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
<project
|
<project
|
||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
xmlns:ant="jelly:ant"
|
xmlns:ant="jelly:ant"
|
||||||
@ -35,12 +35,14 @@
|
|||||||
-->
|
-->
|
||||||
<goal name="multichanges:report">
|
<goal name="multichanges:report">
|
||||||
|
|
||||||
|
<!-- Gather project list using the maven reactor -->
|
||||||
<m:reactor
|
<m:reactor
|
||||||
basedir="${maven.multichanges.basedir}"
|
basedir="${maven.multichanges.basedir}"
|
||||||
banner="Gathering project list"
|
banner="Gathering project list"
|
||||||
includes="${maven.multichanges.includes}"
|
includes="${maven.multichanges.includes}"
|
||||||
excludes="${maven.multichanges.excludes}"
|
excludes="${maven.multichanges.excludes}"
|
||||||
postProcessing="true"
|
postProcessing="true"
|
||||||
|
collectOnly="true"
|
||||||
ignoreFailures="${maven.multichanges.ignoreFailures}"/>
|
ignoreFailures="${maven.multichanges.ignoreFailures}"/>
|
||||||
|
|
||||||
<ant:dirname property="dataReportDir" file="${maven.multichanges.data}"/>
|
<ant:dirname property="dataReportDir" file="${maven.multichanges.data}"/>
|
||||||
@ -48,53 +50,53 @@
|
|||||||
|
|
||||||
<j:file name="${maven.multichanges.data}" prettyPrint="true"
|
<j:file name="${maven.multichanges.data}" prettyPrint="true"
|
||||||
xmlns="release">
|
xmlns="release">
|
||||||
<releases>
|
<releases>
|
||||||
<j:forEach var="reactorProject" items="${reactorProjects}">
|
<j:forEach var="reactorProject" items="${reactorProjects}">
|
||||||
<x:element name="project">
|
<x:element name="project">
|
||||||
<x:attribute name="name">
|
<x:attribute name="name">
|
||||||
${reactorProject.name}
|
${reactorProject.name}
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
<util:file var="changesAsFile"
|
<util:file var="changesAsFile"
|
||||||
name="${reactorProject.context.getVariable('maven.docs.src')}/changes.xml"/>
|
name="${reactorProject.context.getVariable('maven.docs.src')}/changes.xml"/>
|
||||||
<j:choose>
|
<j:choose>
|
||||||
<j:when test="${changesAsFile.exists()}">
|
<j:when test="${changesAsFile.exists()}">
|
||||||
<x:parse var="doc" xml="${changesAsFile}"/>
|
<x:parse var="doc" xml="${changesAsFile}"/>
|
||||||
<!-- Extract latest version. We assume it is contained in
|
<!-- Extract latest version. We assume it is contained in
|
||||||
the first <release> tag found -->
|
the first <release> tag found -->
|
||||||
<!-- TODO: Improve algorithm by writing a java bean -->
|
<!-- TODO: Improve algorithm by writing a java bean -->
|
||||||
<x:set var="versionElems"
|
<x:set var="versionElems"
|
||||||
select="$doc//release[contains(@date,'-')]"/>
|
select="$doc//release[contains(@date,'-')]"/>
|
||||||
<j:choose>
|
<j:choose>
|
||||||
<j:when test="${not(versionElems.isEmpty())}">
|
<j:when test="${not(versionElems.isEmpty())}">
|
||||||
<x:attribute name="version">
|
<x:attribute name="version">
|
||||||
${versionElems.get(0).attributeValue('version')}
|
${versionElems.get(0).attributeValue('version')}
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
<x:attribute name="date">
|
<x:attribute name="date">
|
||||||
${versionElems.get(0).attributeValue('date')}
|
${versionElems.get(0).attributeValue('date')}
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
</j:when>
|
</j:when>
|
||||||
<j:otherwise>
|
<j:otherwise>
|
||||||
<x:attribute name="version">
|
<x:attribute name="version">
|
||||||
Not released
|
Not released
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
<x:attribute name="date">
|
<x:attribute name="date">
|
||||||
Not released
|
Not released
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
</j:otherwise>
|
</j:otherwise>
|
||||||
</j:choose>
|
</j:choose>
|
||||||
</j:when>
|
</j:when>
|
||||||
<j:otherwise>
|
<j:otherwise>
|
||||||
<x:attribute name="version">
|
<x:attribute name="version">
|
||||||
No information available
|
No information available
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
<x:attribute name="date">
|
<x:attribute name="date">
|
||||||
No information available
|
No information available
|
||||||
</x:attribute>
|
</x:attribute>
|
||||||
</j:otherwise>
|
</j:otherwise>
|
||||||
</j:choose>
|
</j:choose>
|
||||||
</x:element>
|
</x:element>
|
||||||
</j:forEach>
|
</j:forEach>
|
||||||
</releases>
|
</releases>
|
||||||
</j:file>
|
</j:file>
|
||||||
|
|
||||||
<ant:dirname property="reportDir" file="${maven.multichanges.report}"/>
|
<ant:dirname property="reportDir" file="${maven.multichanges.report}"/>
|
||||||
@ -109,6 +111,11 @@
|
|||||||
|
|
||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
========================================================================
|
||||||
|
Register the report to the xdoc plugin.
|
||||||
|
========================================================================
|
||||||
|
-->
|
||||||
<goal name="maven-multichanges-plugin:register">
|
<goal name="maven-multichanges-plugin:register">
|
||||||
<doc:registerReport
|
<doc:registerReport
|
||||||
name="Releases"
|
name="Releases"
|
||||||
@ -117,6 +124,11 @@
|
|||||||
description="Report on latest project releases."/>
|
description="Report on latest project releases."/>
|
||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
========================================================================
|
||||||
|
Unregister the report to the xdoc plugin.
|
||||||
|
========================================================================
|
||||||
|
-->
|
||||||
<goal name="maven-multichanges-plugin:deregister">
|
<goal name="maven-multichanges-plugin:deregister">
|
||||||
<doc:deregisterReport name="Releases"/>
|
<doc:deregisterReport name="Releases"/>
|
||||||
</goal>
|
</goal>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user