Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 2348 invoked from network); 13 Sep 2002 18:19:22 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Sep 2002 18:19:22 -0000 Received: (qmail 29482 invoked by uid 97); 13 Sep 2002 18:19:52 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 29465 invoked by uid 97); 13 Sep 2002 18:19:51 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 29452 invoked by uid 98); 13 Sep 2002 18:19:50 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Subject: calling ant from a java file From: Jason Vinson To: ANT Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 13 Sep 2002 14:16:05 -0400 Message-Id: <1031940971.1251.13.camel@maggie.ceo.com> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am currently creating an IRC bot in java to do a cvs download and build via ant. here's a snippet of the code: if (token.equals("build")) { String[] args = new String[4]; args[0] = "-buildfile"; args[1] = ""; args[2] = "clean"; args[3] = "compile"; Main m = null; try { m.start(args, null, null); } catch (Exception e) { e.printStackTrace(); } } which cleans and compiles the build, but it exits on completion which kills my bot (via system.exit()). Is there an arg value i can pass into Main.start() that will keep from exiting the System? thanks in advance, Jason -- To unsubscribe, e-mail: For additional commands, e-mail: