You need to have your app return a non-zero to the DOS command line.
This will cause Nant to fail the build.

 

BOb

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of DBC User
Sent: Friday, July 11, 2008 12:46 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] How to force nant to fail

 

I have an exe that I am calling through my nant task. It is a C# code,
In the C# code, when it fails logically, I want the rest of the nant to
fail forcing the Continuos integration to fail. Is there a way I can for
NANT to fail, instead of throwing exception?

Thanks.,

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to