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 Hetlinger

///[EMAIL PROTECTED]/ <mailto:[EMAIL PROTECTED]>////


Using core NAnt tasks, you would do:

<if test="if-condition">
  <then-block />
</if>
<ifnot test="if-condition">
  <else-block />
</ifnot>


-T


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to