Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 86162 invoked from network); 7 May 2002 00:27:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 May 2002 00:27:55 -0000 Received: (qmail 7465 invoked by uid 97); 7 May 2002 00:28:01 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 7449 invoked by uid 97); 7 May 2002 00:28:00 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 7437 invoked by uid 98); 7 May 2002 00:28:00 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <002001c1f55e$0be5b920$ef9fa8c0@training7> From: "Mark Reid" To: "Ant Developers List" Subject: Integrating Ant into another tool - How do I get around System.exit(0) call in Main.start()? Date: Tue, 7 May 2002 10:28:01 +1000 Organization: Proxima Technology MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm currently writing a web front end for building a product and would like to integrate Ant into it. Everything was going along fine until I tried calling the Main.start(...) method from inside a .jsp. When completed, Main.start(...) calls System.exit(0), taking down Tomcat with it. I've found references to this problem on the web (http://www.mail-archive.com/ant-dev@jakarta.apache.org/msg10570.html) so it looks like it's been discussed here before. That post quotes the docs saying: * If you integrating Ant into some other tool, this is not the class * to use as an entry point. Please see the source code of this * class to see how it manipulates the Ant project classes. This is what I'm doing at the moment but to save me some painful mistakes I was wondering if anyone has done this before and would be willing to give me some tips. It's important that I be able to hook up a listener to the project being run. Thanks in advance, Mark Reid -- To unsubscribe, e-mail: For additional commands, e-mail: