Taking a quick crack at it, try setting 
failonerror="true"

the problem that I can see, is that failonerror defaults to true, are you
setting it to false somewhere near the top of your script?

I'm not sure if you even *can* set a global failonerror setting.

Malcolm



--- "Scott, Larry (TRIAD RESOURCES)" <[EMAIL PROTECTED]> wrote:

> 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
> 


"Oh Bother!" said the Borg, "We just assimilated Pooh."

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to