Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Parallel tasks and Windows

Parallel tasks and Windows

2007-05-25       - By Thomas Voigt
Reply:     1     2     3     4  

Hi,

I posed this question some time ago, but did not get any answers. I thought
after half a year (and unfortunately no new insights) I'd try again, because
this behaviour seriously prolongs our build time :-\

I stumbled upon a curious problem with the ant parallel handling in conjunction
with Windows XP.

Let's say I have 3 targets: call1, call2 and call3 which are executed in a
parallel environment (2 threads). Each target calls a hello world windows GUI
application that has to be closed manually and prints an exit confirmation
afterwards. Ant starts call1 and call2 correctly in parallel. Now the curious
thing is that ant will sometimes (not always) wait for _both_ tasks to end
before it starts the third task. No output is written until both tasks are
finished.

The problem is not limited to GUI applications, we have the same behaviour if
we call the VS2005 C++ compiler :-(

We tried to reproduce the problem by replacing the hello world calls with
various ant sleep commands, but this seemed to work fine, the third task is
always started immediately after one of the first two tasks exits.

Any insights?

Regards, Thomas

--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.