2003-06-30 03:18:49 +00:00

46 lines
1.3 KiB
XML

<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
xmlns:ant="jelly:ant">
<goal name="multiproject"
description="Run the site goal of all subprojects"
prereqs="multiproject:site">
</goal>
<goal name="multiproject:site"
description="Run the site goal of all subprojects">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="clean,site"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:goal" description="Run a given goal on all projects">
<!-- FIXME: This should be a tag somewhere else as it's common to do tag param checking -->
<j:if test="${empty(goal)}">
<ant:fail>A goal to run must be specified, e.g.
maven -Dgoal=clean multiproject:goal
</ant:fail>
</j:if>
<ant:echo>Executing ${goal} on all projects</ant:echo>
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="${goal}"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
</project>