Acording to the ant docs
<fail/>
or
<fail message="Something wrong here."/>
or
<fail>Something wrong here.</fail>
Nicolas
[EMAIL PROTECTED]
15/10/2003 16:03
Veuillez r�pondre � "Maven Users List"
Pour : [EMAIL PROTECTED]
cc :
Objet : How to fail inside a maven plugin
Hi there,
How to fail inside a maven plugin ?
example:
<goal name="init">
<j:set var="error">false</j:set>
<j:if test="${class.dir == null}">
<ant:echo message="property
'class.dir' not present"/>
<j:set
var="error">true</j:set>
</j:if>
<j:if test="${error == 'true'}">
<ant:echo
message="Missing properties !"/>
FAIL HERE
</j:if>
...
</goal>
Thx,
-emmanuel
---------------------------------------------------------------------
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]