P
prempel
Hi, I couldn't find a nant user group here, so thought i'd try this.
I run an external program from nant (robocopy) and unfortunately, it
returns 1 on success. Nant interprets this as a failure. I want it to
continue when it gets a 1 back (and possibly certain other codes), but
fail otherwise. I know I could use failonerror=false but then it would
still continue even during a real error.
Is there a way to capture the return code into a variable when using
the <exec> nant task?
- Paul
I run an external program from nant (robocopy) and unfortunately, it
returns 1 on success. Nant interprets this as a failure. I want it to
continue when it gets a 1 back (and possibly certain other codes), but
fail otherwise. I know I could use failonerror=false but then it would
still continue even during a real error.
Is there a way to capture the return code into a variable when using
the <exec> nant task?
- Paul