Re: wait for background thread

2005-07-26 Thread Conor MacNeill
Patrick Martin wrote: > Hi, > > The idea is actually to do that entirely in java. It's for a task I > want to share, so I'd like to avoid asking users to call a waitfor... > > Basically, I'd like to see how to make the forget task work in > non-daemon mode (ie, ant should not terminate until the

Re: wait for background thread

2005-07-26 Thread Patrick Martin
- Ant uses for synchronizing > > Jan > > >-Ursprüngliche Nachricht- > >Von: Patrick Martin [mailto:[EMAIL PROTECTED] > >Gesendet: Dienstag, 26. Juli 2005 18:08 > >An: user@ant.apache.org > >Betreff: wait for background thread > > > >Hello, >

AW: wait for background thread

2005-07-26 Thread Jan.Materne
I would use a file as semaphore: - the background thread creates a file as last instruction - Ant uses for synchronizing Jan >-Ursprüngliche Nachricht- >Von: Patrick Martin [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 26. Juli 2005 18:08 >An: user@ant.apache.org >Be

wait for background thread

2005-07-26 Thread Patrick Martin
Hello, Writing an task, I want to run some stuff in a background thread, and I need ant to wait until the background thread is done before exiting. I thought I would take example on the ant-contrib forget task, but it seems that ant will exit even if the background thread is not finished: