Re: [Nant-users] if then else question

2004-11-30 Thread Troy Laurin
Chris Hetlinger wrote: I need to perform a task such as compiling a VS.net solution and then do different tasks depending on whether the original task succeeded or not. I do not just want to quit if the task fails. How can I implement this if-then-else construct in a NAnt build? Chris Hetling

Re: [Nant-users] if then else question

2004-11-30 Thread Merrill Cornish
Chis, NAnt currently doesn't have an IF-THEN-ELSE construct. Instead, you have to say IF x THEN ... followed by IF not x THEN If you IF test is complex, you might try defining a property named something like "is_x" then have an IF testing for is_x followed by one testing for not is_x. M

[Nant-users] if then else question

2004-11-30 Thread Chris Hetlinger
Title: if then else question I need to perform a task such as compiling a VS.net solution and then do different tasks depending on whether the original task succeeded or not.  I do not just want to quit if the task fails.  How can I implement this if-then-else construct in a NAnt build? Chris