Hi Chayim, No, this is not supported and probably never will be.
You should proceed using dependencies and conditions. Good luck! Gert -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chayim Kirshen Sent: woensdag 10 oktober 2007 22:04 To: Bob Archer; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Stopping A NAnt Build? Thanks, but I have to hope it is possible! I make it a point to stitch together tasks with "super" tasks then are called, rather than use dependencies. This makes all sorts of things easier for us. However, in this particular case, I want to exit 0. --c > -----Original Message----- > From: Bob Archer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 10, 2007 4:01 PM > To: Chayim Kirshen; nant-users@lists.sourceforge.net > Subject: RE: [NAnt-users] Stopping A NAnt Build? > > I don't know if you can stop it. Basically I would structure the tashs > using the if and unless attributes and set some property value so > targets/tasks you don't want to run will be skipped. > > BOb > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chayim > Kirshen > Sent: Wednesday, October 10, 2007 3:55 PM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] Stopping A NAnt Build? > > Folks, > > I'm wondering if there is any way to stop a NAnt build from inside a > task. I'm looking for something similar to <fail>, but which means a > success has occurred. Ideally I'd use this to not run something based > on a script's return code, but exiting cleanly is a good thing. > > thanks! > > --c > > -------------------------------------------------------------- > ---------- > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users