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:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 5:49 PM
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
> 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
> 

Reply via email to