the fail task should termintate the build. I just ran a test and the following build snippet:
<target name="target1">
<echo message="in target1" />
<call target="target2"/>
</target>
<target name="target2">
<echo message="in target2" />
<call target="target3"/>
<echo message="still in target2 - should have failed" />
</target>
<target name="target3">
<echo message="in target3" />
<call target="failure"/>
<echo message="still in target3 - should have failed" />
</target>
<target name="failure">
<echo message="in failure target" />
<fail />
</target>
produces the following output: target1:
[echo] in target1
target2:
[echo] in target2
target3:
[echo] in target3
failure:
[echo] in failure target
BUILD FAILED
Which is what you expect - ie if fails immediatly after the fail task is executed. Could you post the build script that exhibits the behaviour you describe ?
Ian
Greetings,
I am attempting to use the fail task within a nested target...
Target A Calls Target B Calls
Target C
Within Target C I Issue a Fail....
Target B & A continue to execute successfully and in fact all subsequent build steps execute to completion.
Is this the behavior I should expect? If so what is the exact purpose of the fail task.
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users