ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53407] New: Parallel Task cause deadlock
Date Wed, 13 Jun 2012 07:03:41 GMT

          Priority: P2
            Bug ID: 53407
           Summary: Parallel Task cause deadlock
          Severity: major
    Classification: Unclassified
          Hardware: PC
            Status: NEW
           Version: 1.8.4
         Component: Core tasks
           Product: Ant

Created attachment 28925
Ant just print the task name

1. When I config build.xml as below, then run target "test" in eclipse, ant may
cause deadlock sometimes. It didn't execute target at all, just print target
name as screen capture showed. And the target number may be two or three, means
some times "test1" and "test3", some times "test1","test2","test3".

<target name="test">
  <parallel threadCount="3">
    <antcall target="test1"/>
    <antcall target="test2"/>
    <antcall target="test3"/>

<target name="test1">
  <echo message="this is a test1"></echo>
<target name="test2">
  <echo message="this is a test2"></echo>
<target name="test3">
  <echo message="this is a test3"></echo>

2. Does ant run parallel task use separate class loader? as configured before,
target "test1" related class use its own ClassLoader which is different from
target "test2" and target "test3"'s. So, how can I configure parallel task if I
want one task to do an initializing work which is depended by all other tasks?

You are receiving this mail because:
You are the assignee for the bug.

View raw message