ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24181] - Shutdown failing
Date Wed, 24 Dec 2003 17:00:35 GMT
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 gregorys@xmission.com  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message