ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject Re: Don't want to wait for my forking tasks to complete
Date Sat, 07 Apr 2001 03:06:06 GMT

it cannot be done at present within a single ant instance. We are looking
at multithreading support as part of the Ant 2.0 discussion which is taking
place on Ant-Dev so I feel there will be a solution in the future. For now,
like you suggest, I generally run multiple copies of ant - one running
wlrun and the other a set of junit tests, etc.


----- Original Message -----

From: "Victor Ganora" <>
To: <>
Sent: Saturday, April 07, 2001 8:26 AM
Subject: Don't want to wait for my forking tasks to complete

>   I want to create a target that starts my servers. (One is tomcat, the
> other an EJB container. They are <java> and <wlrun> tasks respectively.)
>   I've written the two subtasks and they each run fine. Then I grouped
> into a separate empty task that depends on them both. The problem is that
> the first task (being a server) never returns, so the second task never
> starts.
>   Yes, I'm using fork="true".
>   Is there any way to have Ant start the threads separately and not wait
> the result codes?
>   I know I could put two invocations of Ant into a batch file and run
> from the command line. (Or maybe with <exec>. Does it wait?), but that
> inelegant solution.

View raw message