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
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
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