Re: Exec task does not fail inspite of non-zero error level

2005-08-06 Thread David A. Bartmess
I may be entirely wrong, been a while, but I think you need to "return 50" or "exit 50" to get the error code returned to ant... At 12:03 PM 8/5/2005, you wrote: Hi, I am using an ant script to trigger off my builds and unit tests but for some reason I am unable to get the exec task to work p

RE: Exec task does not fail inspite of non-zero error level

2005-08-05 Thread Currimbhoy Shahyan
Yes that works !..Thanks ! -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 2:06 PM To: Ant Users List Subject: Re: Exec task does not fail inspite of non-zero error level Try: EXIT 50 -Matt --- Currimbhoy Shahyan <[EMAIL PROTECTED]>

Re: Exec task does not fail inspite of non-zero error level

2005-08-05 Thread Matt Benson
Try: EXIT 50 -Matt --- Currimbhoy Shahyan <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using an ant script to trigger off my builds > and unit tests but for > some reason I am unable to get the exec task to work > properly. > My ant script contains the following code snippet: > > > > > f

Exec task does not fail inspite of non-zero error level

2005-08-05 Thread Currimbhoy Shahyan
Hi, I am using an ant script to trigger off my builds and unit tests but for some reason I am unable to get the exec task to work properly. My ant script contains the following code snippet: All my BUILDLOCAL.CMD does is set ERRORLEVEL=50. This should cause my build task to fail ho