----- Original Message -----
From: "Richard Trahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to