Re: Starting a Java application in the background.

2002-07-02 Thread Hal Hildebrand \(web\)
Do you have a simplified example of the Ant script you're using? If you are spawning processes from your own code, you'll have to use shutdown hooks to kill them when the parent dies: final Process proc = Runtime.getRuntime().exec(cmd, env); Runtime.getRuntime().addShutdownHook( new Thread(

Re: Starting a Java application in the background.

2002-07-02 Thread Ric Searle
This is: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91) with Apache Ant version 1.5Beta3 compiled on June 22 2002 Hope this helps, Ric On Tuesday, July 2, 2002, at 04:13 pm, Hal Hildebrand ((web)) wrote: > Is this under JDK 1.3 or 1.4? > > Ant 1.5 beta 2 fixed this t

Re: Starting a Java application in the background.

2002-07-02 Thread Hal Hildebrand \(web\)
Is this under JDK 1.3 or 1.4? Ant 1.5 beta 2 fixed this to kill all spawned processes when the parent is terminated. Seems like the JDK did something different in their process spawning in JDK 1.3 that was different from previous versions. Spawned processes are not tied to the parent's lifetime

Re: Starting a Java application in the background.

2002-07-02 Thread Ric Searle
> You are mixing up the children and parents relations of the two.  A java > task is a child of the ant process.  Killing the ant process will kill > its children as well. That's what I would have thought, but it doesn't. The java task that ant started carries on even when all of the ant proces

Re: Starting a Java application in the background.

2002-07-01 Thread Steve Loughran
From: "Dominique Devienne" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Monday, July 01, 2002 11:03 Subject: RE: Starting a Java application in the background. > Perhaps, but the patch in bugzilla (which I also have) looks OK to m

RE: Starting a Java application in the background.

2002-07-01 Thread Dominique Devienne
ow... --DD -Original Message- From: Thomas Zander [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 12:02 PM To: Ant Users List Subject: Re: Starting a Java application in the background. So; like Steve said; its quite hard to write :) -- To unsubscribe, e-mail: <mailto:[EMAIL PR

Re: Starting a Java application in the background.

2002-07-01 Thread Thomas Zander
You are mixing up the children and parents relations of the two. A java task is a child of the ant process. Killing the ant process will kill its children as well. With the java process still living after ant died the children died and the parent still lives. There is a way on linux to 'detach

Re: Starting a Java application in the background.

2002-07-01 Thread Ric Searle
Thanks. It seems like a nice feature that ant could do with. I like the idea of saying to our support department, "Get version x.x from CVS, and then just type 'ant' to build and run it.". Here's a thought: Killing any of the ant processes (on Linux at least) kills all of the ant processes,