Hello,
I realise that it is inappropriate to email this question to the ant-dev
list, but there was no response from the ant-users list. I also realise that
the starting of background tasks is non-portable, but surely somebody has
encountered this problem before?
--
The question:
I am using Ant on a Linux machine, and am attempting to start a java process
as a background task. However, including a '&' (or &) as an argument does
not cause the process to start separately. (in fact it didn't like it at all)
I have also created a .sh script which -then- starts another process with an
&. Running this .sh from the command prompt causes the program to run in the
background, however within Ant the control does not return.
I'm guessing that Ant does not regard a <java> or <exec> to be completed
until all child tasks have finished. Is this correct? Is this a bug (or even
a feature)? Is there a workaround?
Thanks,
Nigel
---------- Forwarded Message ----------
Subject: Starting Background Tasks with Ant
Date: Tue, 22 May 2001 01:19:27 +1000
From: Nigel Leslie <mop@nuix.com.au>
To: ant-user@jakarta.apache.org
Good Afternoon,
I am using Ant on a Linux machine, and am attempting to start a java process
as a background task. However, including a '&' (or &) as an argument does
not cause the process to start separately. (in fact it didn't like it at all)
I have also created a .sh script which -then- starts another process with an
&. Running this .sh from the command prompt causes the program to run in the
background, however within Ant the control does not return.
I'm guessing that Ant does not regard a <java> or <exec> to be completed
until all child tasks have finished. Is this correct? Is this a bug (or even
a feature)? Is there a workaround?
Thanks,
Nigel
--
Nigel Leslie
NUIX Pty Ltd
mailto:mop@nuix.com.au
|