DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24181>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24181

Shutdown failing





------- Additional Comments From [EMAIL PROTECTED]  2003-12-24 17:00 -------
I can confirm this error.

The class:

public class NoFin {
   public static void main(String[] args)  throws Exception {
       while (true) {
           Thread.sleep(1000);
       }
   }
}

With a build script:

<project default="nofin">
 <target name="nofin">
   <javac srcdir=".">
     <include name="NoFin.java"/>
   </javac>
   <java fork="yes" classname="NoFin"
         classpath="."/>
 </target>
</project>

The code change in ant was in ProcessDestroyer.java revision 1.6:

Only register ProcessDestroyer when needed (and unregister it when no
longer needed)

============================================================

I use Ant to (among other things) run a couple of programs that run perpetually
but have no shutdown method.  In Ant v1.5.4 I could use Ctrl-C to shutdown these
programs.  I can do the same thing with v1.6.0 but I always get the following
error.  Is there any way to suppress this error (and this error only) so that
other users of my programs don't think something abnormal is happening?

    [java] java.lang.reflect.InvocationTargetException 
etc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to