Excellent Noel!!! I got to bypass the error with failonerror = “false”. This was perfect for my project.
Thanx again!!! JMT Jean
Michel Thériault Configuration and Installation Application
Developer (COOP) Cactus Commerce From: Noel Gifford
[mailto:[EMAIL PROTECTED] 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----- 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 |
<<image002.jpg>>
<<image003.jpg>>
<<image004.jpg>>
<<image005.jpg>>