ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53407] New: Parallel Task cause deadlock
Date Wed, 13 Jun 2012 07:03:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53407

          Priority: P2
            Bug ID: 53407
          Assignee: notifications@ant.apache.org
           Summary: Parallel Task cause deadlock
          Severity: major
    Classification: Unclassified
          Reporter: xpjsky@gmail.com
          Hardware: PC
            Status: NEW
           Version: 1.8.4
         Component: Core tasks
           Product: Ant

Created attachment 28925
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28925&action=edit
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"/>
  </parallel>
</target>

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

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.

Mime
View raw message