Thanks... that works great. I changed it to return a zero if error level was 1 otherwise to return errorlevel.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brass Tilde Sent: Friday, February 08, 2008 10:43 AM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] exec Bob Archer <[EMAIL PROTECTED]> wrote: > So, I have a build tool which comes with a batch file to call it. The > batch file calls the build tool which sets the errorlevel. It actually > sets it to 1 for success. Is it possible it doesn't get back to > nant... I would expect nant to see the one and think there was a > failure but that doesn't happen. So I am thinking that the errorlevel > isn't getting to nant. If you can modify the batch file, you might try adding at the end: exit /B %errorlevel% That should exit the batch script (without quitting the process that started it) and set the error level for the batch file. > Perhaps I should just bypass the batch file? If it's just a single call to the tool with the needed command line, that might not be a bad idea. If it does a bunch of different stuff, then maybe not. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users