Title: Stopping A Build

My NAnt scripts are not stopping when there is an error in some tasks.  It will stop if I have an error in a CSC task (building a C# application).  But when executing an 'nunit2'  task, and one of the test fails, I'd like to stop the process, but it continues executing (I do see a Nant.Core.BuildException in the log, but process continues).   I have a similar problem when running an 'ndoc' task which produces an error on missing documentation.  This time, I don't see anything in the log, and only see the error when I look at the generated doc.  Is there a way to detect the error in the ndoc task and stop the build process?  Finally, I am running FxCop using an 'exec program' task.  Is there a way to determine if that process generates a 'critical' error (or any error for that matter)?  I have the 'failonerror' attribute set to 'true' for all these tasks, but it does not seem to detect these errors?  Am I doing something wrong?  Is it possible to stop the process when one of these steps fail?

NAnt 0.85 RC3
NUnit 2.2.0
NDoc 1.3.1
FxCop 1.32 RC1



Thanks.

LWS

Reply via email to