Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 80466 invoked from network); 27 Oct 2000 12:56:26 -0000 Received: from unknown (HELO smtp.imtf.ch) (194.209.33.6) by locus.apache.org with SMTP; 27 Oct 2000 12:56:26 -0000 Received: from imtfdc3.imtf.ch ([192.168.255.30]) by smtp.imtf.ch with Microsoft SMTPSVC(5.5.1877.197.19); Fri, 27 Oct 2000 14:53:25 +0200 Received: by imtfdc3.imtf.ch with Internet Mail Service (5.5.2650.21) id ; Fri, 27 Oct 2000 14:54:40 +0200 Message-ID: From: Roche Ian To: "'ant-user@jakarta.apache.org'" Subject: RE: Java compile command Date: Fri, 27 Oct 2000 14:54:40 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, I discovered that I was using version 1.1 of ANT so I upgraded to 1.2 and made the necessary changes to the build.xml file. This actually solves the problem. I can now start the RMI service and it binds correctly to the registry but the ANT process never terminates. It seems that ANT gets stuck between terminating the spawned process and terminating its own process. I used the following code to start the class: it > waits for the JVM to terminate before continuing. Perhaps the term fork is > misleading here. > > Conor > > > -- > Conor MacNeill > conor@cortexebusiness.com.au > Cortex eBusiness > http://www.cortexebusiness.com.au > > > -----Original Message----- > > From: Roche Ian [mailto:ian.roche@imtf.ch] > > Sent: Friday, 27 October 2000 1:40 > > To: 'ant-user@jakarta.apache.org' > > Subject: Java compile command > > > > > > Hi, > > > > I use Ant for compiling and running rmi classes. > > I run the RMI service (UnicastRemoteObject that contains > > a main) using Ants forking of the JVM with my own classpath and > > parameters. > > The problem seems to be that Ant does not terminate when the main > > is finished. I added a system.exit(0) command > > at the end of the main to try and ensure termination of the forked > > process but this does not work as the rmi object seems to be > > unbound from the registry as a result of this. > > > > Any help would be great. > > > > Ian > > > >