You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Hu...@emc.com on 2004/06/02 22:49:23 UTC

Daemon Threads

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


Re: Daemon Threads

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
Please take a look at <scriptdef>.

- Alexey.

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
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Modified Selector Question

Posted by Gary Eberhart <ga...@cmcflex.com>.
Using the modified selector in the following example,


<ftp server="${ftp.server}" userid="${ftp.user}" password="${ftp.pwd}">
 <fileset dir="htdocs/manual">
  <modified/>
 </fileset>
</ftp>


How can I generate the cache.properties against the files on the remote
system. I'm running AntServer on the remotes system. I want to generate the
cache.properties files based on the contents of the remote system and ftp it
back to the local system so I can use the Modified selector to send all
changed files to the remote system.




Gary Eberhart
Manager New Product Development
Computer Marketing Corporation
Phone: 801-365-5000
Fax: 801-365-5100


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Daemon Threads

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
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