Jean-Michel, When a task fails, the entire build fails unless you specify failonerror = "false" for the task (and then I don't know whether you get any indication that there was a failure). To trap the failure, set the nant.onfailure property to the target that you want executed when the build fails. There is a similar nant.onsuccess property. I haven't tried this so there may be a better way. Noel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jean-Michel Theriault Sent: Friday, June 18, 2004 11:34 AM To: [EMAIL PROTECTED] Subject: [Nant-users] Doesn't finish it's target once it finds an error??!! I was just wondering if it is normal that when building, once inside a target and it finds an error, it doesn't finish the target. By this I mean it doesn't write my echo 's out nor executes the rest of the code. [exec] devenv.exe "t:\...????" /Rebuild "Debug" /out "t:\....????\compile.log" BUILD FAILED t:\.....????.build(179,7): External Program Failed: devenv.exe (return code was 1) Total time: 363.7 seconds. I have code after this that is there to catch the error and do something else, if the error occurs...but it never gets there cause it seems to leaves the target after this error... Any help is greatly appreciated!! Thanx in advance... Jean Michel Thériault [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
<<attachment: winmail.dat>>