ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject [PATCH] multithreading tasks
Date Sun, 28 May 2000 15:58:53 GMT
Team,

Attached is a fairly simple patch plus a new class to allow ant to run tasks
in separate threads. The motivation for this patch is to allow us to perform
unit testing in a relatively automated fashion. In our particular situation
we would like to have an ant target for testing which will start weblogic in
one thread and JUnit in another. Once JUnit completes its tests, weblogic
will be stopped and the target will complete by joining all outstanding
threads.

This is not really motivated by trying to parallelize builds for performance
reasons but that may be possible too.

Whilst our particular use is for running weblogic, the changes here are
general in nature. I will post the taskdef for running weblogic in a later
post.

To get a task to run in a separate thread, simply add async="yes" to the
task definition.

Let me know what you think. If this is accepted, I plan two new small
taskdefs:- a sleep task and a join task.

Conor

Mime
View raw message