use new param-check tag
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2879445d5b
commit
9cbc2cf8a9
@ -2,6 +2,7 @@
|
||||
|
||||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:m="maven"
|
||||
xmlns:maven="jelly:maven"
|
||||
xmlns:ant="jelly:ant"
|
||||
xmlns:doc="doc"
|
||||
@ -104,12 +105,10 @@
|
||||
<!-- Run specific sets of goals for all subprojects -->
|
||||
<!--==================================================================-->
|
||||
<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>
|
||||
<m:param-check value="${goal}" fail="true">
|
||||
A goal to run must be specified, e.g.
|
||||
maven -Dgoal=clean multiproject:goal" fail="true"</m:param-check>
|
||||
|
||||
<ant:echo>Executing ${goal} on all projects</ant:echo>
|
||||
<maven:reactor
|
||||
basedir="${maven.multiproject.basedir}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user