You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Geoff Meakin <ge...@gamesys.co.uk> on 2005/09/09 11:19:04 UTC
cant run ant in background on linux?
Hi, I wonder if anybody has experienced the same?
I'm on a unix/linux system, and trying to run simply:
I have a foreach task calling a target:
<foreach list="${foo}"
target="callme"
parallel="${test.parallel}"
maxThreads="100"
param="myparam"/>
that target calls a java as follows:
<java dir="mydir"
classname="some.class" fork="true">
</java>
When I run ant, it works as expected
When I run ant & (i.e. in the background), it does not work
The foreach gets called and so does the java, but the java never runs
I have run an strace on ant -verbose & and got the following:
[java] Executing '/usr/java/j2sdk1.4.2_08/jre/bin/java' with
arguments:
[java] ... more debug here about the arguments, then
[java] The ' characters around the executable and arguments are
[java] not part of the command.
) = -1 EINTR (Interrupted system call)
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
futex(0x83a5088, FUTEX_WAIT, 1, NULL
Anybody else get the same, or know why it doesn't work in the
background?
Ant 1.6.5, latest ant-contrib, java 1.4.2_08
Cheers
-Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org