ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <...@ptc.com>
Subject Sequential/WaitFor Missing taskFinished Event on Failure
Date Tue, 17 Jul 2007 17:34:27 GMT
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"> +


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message