ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject Re: Daemon Threads
Date Wed, 02 Jun 2004 20:52:40 GMT
Hi Dustin,

you have different possibilities :
- use the java task with <spawn="true" fork="true"/> to start your task 
(then you need to create a public void static main(String [] args) to 
start it obviously,
- use the exec task ...
The spawn attribute is new in ant 1.6.
There have been problems reported with handling of IO. I think that the 
HEAD revision of ant that you can get from CVS is better from this 
Otherwise, your task may die (depending on the operating system), if it 
is using System.out(), System.err(),
Antoine wrote:

>I have a task that takes anywhere from 1-3 hours. I would like to initiate
>it via Ant, but allow for the parent Ant target to return quickly. Is there
>any way to create a zombie or daemon thread in ant?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message