ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve.Derid...@Level3.com
Subject RE: Reaction to a failed task
Date Fri, 16 Feb 2001 01:03:51 GMT
I do that also from dos (bat files)

.
call ant.bat wlrun
echo wlrun: %ERRRORLEVEL%
.
.


0 - Good
1 - Bad

HTH
steve

-----Original Message-----
From: Liu, Kenneth Albert (Kenneth)** CTR ** [mailto:kenliu@lucent.com]
Sent: Thursday, February 15, 2001 5:49 PM
To: ant-user@jakarta.apache.org
Subject: RE: Reaction to a failed task


You could call ant from a script and then check the return code.
I'm doing this in my project right now.

Ken

> -----Original Message-----
> From: M.A.Dunphy [mailto:madunphy@bigfoot.com]
> Sent: Wednesday, February 14, 2001 1:05 PM
> To: Ant-User (E-mail)
> Subject: Reaction to a failed task
> 
> 
> Hi all,
> 
> If a task fails (i.e wlrun), is there a way within ant to 
> know this has
> happened and to do something about it, for example mail somebody
> 
> Thanks
> 
> Mick
> 

Mime
View raw message