ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: does java fork work?
Date Sun, 09 Jun 2002 22:58:33 GMT

----- Original Message -----
From: "Richard Trahan" <>
To: <>
Sent: Sunday, June 09, 2002 4:06 PM
Subject: does java fork work?

> I can't seem to get fork to work. My target is:
>   <target name="run" depends="compile">
>   <!-- fork allows class to call System.exit without killing ant -->
>     <java classname="${qualclass}" fork="yes" classpath="${class}">
>       <jvmarg value="-ea"/>
>     </java>
>   </target>
> The target runs, but only one jvm seems to be running, also
> evidenced by the fact the emacs, from which Ant is invoked, becomes
> unresponsive while the task is running, and becomes active again
> when the task calls System.exit.
> P.S. I saw in this group the value "true" for fork, instead of "yes".
> The manual says the default is "no", so I assume the opposite is
> "yes". I tried "true" anyway, with the same results.

yes==true, no==false; ant doesnt care.

<java> does fork, but it is a blocking fork; your program wont continue till
the forked program returns

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message