You can use the Nant "nant.onfailure" property to specify
the name of the task to run on a task failure:
The above will run the Nant task "revert" when a Nant task
returns an error. You could then have the "revert" task do your
cleanup.
From: [EMAIL PROTECTED]
[mailto:[E
Or more simply, add use the resultproperty and failonerror attributes of
to get the result code and behave appropriately.
See http://nant.sourceforge.net/nightly/latest/help/tasks/exec.html
- Tony
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger
Li
Gage, Joshua SDR 2675 wrote:
> Is there some way to specify that a sub-task should run even if a
> previous task failed? Can I create another target where I execute the
> program, then in the main target delete the folder and still have Nant
> record a failed build? Is there a try/finally type of c
Hi all,
I have a task which runs an external program. That program generates
some output files to a specific folder. Once that is done I copy those
files to our output folder and delete the program's output folder.
<=== Would like
Hi,
you can use exec task and start devenv.com yourproj.vdproj
/build release.
Regards,
Boni
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Juan
Carlos Becerra IreneSent: Freitag, 27. Oktober 2006
00:09To: nant-users@lists.sourceforge.netSubject:
[NAnt-users] .CAB files cr