ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42924] New: - Sequential/WaitFor Missing taskFinished Event on Failure
Date Wed, 18 Jul 2007 03:27:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42924>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42924

           Summary: Sequential/WaitFor Missing taskFinished Event on Failure
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: mbm@ptc.com


It appears that the <sequential> and <waitfor> tasks do not fire the task
finished event when there is a failure in another sequential task within the
same parallel task.

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 name="parallel">
  <task name="sequential" thread="Thread-2">
    <task name="fail" thread="Thread-2">
    </task>
  </task>
  <task name="sequential" thread="Thread-3">
    <task name="waitfor" thread="Thread-3">
</task>
</target> 
<stacktrace exception="
ParallelLogTest.xml:69: fail_while_wait failing while waiting"> +

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message