ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Meakin" <geo...@gamesys.co.uk>
Subject RE: cant run ant in background on linux?
Date Fri, 09 Sep 2005 10:35:19 GMT
I now have a workaround which is:

Ant < /dev/null &

However this strikes me as very odd, and any light shed upon the
situation would be good :-)


Cheers
-Geoff


-----Original Message-----
From: Geoff Meakin [mailto:geoffm@gamesys.co.uk] 
Sent: 09 September 2005 10:19
To: Ant Users List
Subject: 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


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


Mime
View raw message