You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Murray, Mike" <mb...@ptc.com> on 2007/07/17 19:34:27 UTC
Sequential/WaitFor Missing taskFinished Event on Failure
It appears that the <sequential> and <waitfor> tasks do not fire the
task finished event when there is a failure in the non-waiting
sequential block within the same parallel block. I plan to file a bug
report for this, but I thought I'd post to the list in case anyone has
insight into this situation.
Thanks, Mike
Here is a target that will produce the problem.
<target name="fail_while_wait" if="fail">
<parallel failonany="true">
<sequential>
<fail message="fail_while_wait failing while waiting"/>
</sequential>
<sequential>
<waitfor maxwait="10" maxwaitunit="second"
checkevery="5" checkeveryunit="second">
<available file="non-existent-file"/>
</waitfor>
</sequential>
</parallel>
</target>
Here is the output of our custom xml logger.
<target name="fail_while_wait">
<task
location="L:\wcmod\modules\PtcBuildSupport\src_ant\com\ptc\tools\build\P
arallelLogTest.xml:67: " name="parallel">
<task
location="L:\wcmod\modules\PtcBuildSupport\src_ant\com\ptc\tools\build\P
arallelLogTest.xml:68: " name="sequential" thread="Thread-2">
<task
location="L:\wcmod\modules\PtcBuildSupport\src_ant\com\ptc\tools\build\P
arallelLogTest.xml:69: " name="fail" thread="Thread-2">
</task>
</task>
<task
location="L:\wcmod\modules\PtcBuildSupport\src_ant\com\ptc\tools\build\P
arallelLogTest.xml:72: " name="sequential" thread="Thread-3">
<task
location="L:\wcmod\modules\PtcBuildSupport\src_ant\com\ptc\tools\build\P
arallelLogTest.xml:74: " name="waitfor" thread="Thread-3">
</task>
</target>
<stacktrace
exception="L:\wcmod\modules\PtcBuildSupport\src_ant\com\ptc\tools\build\
ParallelLogTest.xml:69: fail_while_wait failing while waiting"> +