ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Daemon Threads
Date Thu, 03 Jun 2004 06:05:13 GMT
You can use <java> to start a new Ant instance which runs only that target.

... mmh would be a <ant spawn> useful here?


Jan

> -----Original Message-----
> From: Antoine Lévy-Lambert [mailto:antoine@antbuild.com]
> Sent: Wednesday, June 02, 2004 10:53 PM
> To: Ant Users List
> Subject: Re: Daemon Threads
> 
> 
> 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 
> viewpoint.
> Otherwise, your task may die (depending on the operating 
> system), if it 
> is using System.out(), System.err(), System.in().
> Cheers,
> Antoine
> 
> Hunter_Dustin@emc.com 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message