ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject AW: Abort build with successful status
Date Mon, 15 Jun 2009 07:12:08 GMT
Hello,

I would use <if> from antcontrib to achieve this. 

Sth.like
<if>
  <equals arg1="true" arg2="${longbuild}" />
<then>
  <domore...>
</then>
</if>

-- 
J├╝rgen Knuplesch
-----Urspr├╝ngliche Nachricht-----
Von: Shawn Castrianni [mailto:Shawn.Castrianni@halliburton.com] 
Gesendet: Montag, 15. Juni 2009 07:18
An: 'user@ant.apache.org'
Betreff: Abort build with successful status

Is there a way to end a build prematurely, successfully?  I can use <fail>, but then
the return value of ant is a failure and it prints out BUILD FAILED, which will make the user
think something bad happened.  That was not the case.  I want to stop a build in certain circumstances
and have it be normal and successful.  How could I write my own task to do this?

---
Shawn Castrianni

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information
for the sole use of the intended recipient.  Any review, use, distribution, or disclosure
by others is strictly prohibited.  If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the sender by reply e-mail
and delete all copies of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message