ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaikh, Mehmood" <>
Subject RE: Ant 1.3 sequence of tasks but would like concurrent?
Date Thu, 14 Jun 2001 18:16:29 GMT
Does anyone know whats the timeline for Ant2?

-----Original Message-----
From: McNamara, Sean (Contractor) []
Sent: June 14, 2001 12:20 PM
To: ''
Subject: RE: Ant 1.3 sequence of tasks but would like concurrent?

My understanding is that multiple commnads within a task will be
multithreaded, the multiple threads will be joined at the end of the
containing task.

This means you could have something like the followingn (note: I have no
idea if there will actually be a multithread param, or what the specifics of
the code are, but the following seems possible/likely:

<task name="startAllServers" multithread="yes">
   <startServer name="server1" ... />
   <startServer name="server2" ... />
   <startServer name="server3" ... />

When the task starts, it will create three child threads, and execute the
startserver task in each one.  The startAllServers task will wait for all
three subtasks to complete before finishing.  The important thing to note is
that each sub-task MUST finish and return before the system continues the
build process.

The second type of multithreading (which was rejected) would allow us to
multithread entire tasks, meaning the build process wouldn't stop and wait
for a return.  This is important when doing things like starting Application
Servers.  There are a couple of ways to get this behavior without it being
in ANT.  I'm working on figuring out the best solution right now, and will
follow up with a post once I've worked it out.

-----Original Message-----
From: Nasgowitz, Mark (MED, GEMS-IT) []
Sent: Thursday, June 14, 2001 10:54 AM
To: ''
Subject: RE: Ant 1.3 sequence of tasks but would like concurrent?


This is what I cut from the Ant2.0 feature list.
[DISC] multithrading

* Multithreaded execution of tasks within the same target.


* Multithreaded execution of targets.

  [REJECTED - vetoes by Conor MacNeill, Glenn McAllister and Stefan

Since I am still learning Ant this leads me to more questions.
What exactly does this mean? So the target is not concurrent but the
tasks in the target are? Will each task then need a parameter to select
not waiting for the task to finish?

I hope to get an understanding so that I can adjust my current process
to include the correct steps for this feature.

Thanks again!

View raw message