Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32373 invoked from network); 12 Nov 2003 16:28:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Nov 2003 16:28:54 -0000 Received: (qmail 96199 invoked by uid 500); 12 Nov 2003 16:28:41 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 95948 invoked by uid 500); 12 Nov 2003 16:28:39 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 95935 invoked from network); 12 Nov 2003 16:28:39 -0000 Received: from unknown (HELO ext-ch1gw-3.online-age.net) (216.34.191.37) by daedalus.apache.org with SMTP; 12 Nov 2003 16:28:39 -0000 Received: from int-ch1gw-3.online-age.net (int-ch1gw-3 [3.159.232.67]) by ext-ch1gw-3.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id hACGSdbG022282 for ; Wed, 12 Nov 2003 11:28:40 -0500 (EST) Received: from cinmlef01.e2k.ad.ge.com (localhost [127.0.0.1]) by int-ch1gw-3.online-age.net (8.12.9/8.12.3/990426-RLH) with ESMTP id hACGSc4b002821 for ; Wed, 12 Nov 2003 11:28:39 -0500 (EST) Received: from cinmlvem03.e2k.ad.ge.com ([3.159.213.61]) by cinmlef01.e2k.ad.ge.com with Microsoft SMTPSVC(5.0.2195.6673); Wed, 12 Nov 2003 11:28:38 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: task Date: Wed, 12 Nov 2003 11:28:37 -0500 Message-ID: <490D1262C7326540A9CE8B56BF8E3E74118600C6@CINMLVEM03.e2k.ad.ge.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: task Thread-Index: AcOozpe4dvICPHpJSWChoyn+meXy0AAahVNw From: "Conelly, Luis (EM, DDEMESIS)" To: "Ant Users List" X-OriginalArrivalTime: 12 Nov 2003 16:28:38.0034 (UTC) FILETIME=[06982F20:01C3A93A] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, That's how I finally made tomcat start from my Ant script.=20 Start Tomcat: or Both targets works practically the same. One small issue comes with = both of these solutions: when I execute them, the startup.bat file does = not return the control to my console and I have to send a Ctrl+C = keystroke and answer 'n' when the shell ask me if I want to finish the = batch job. It is kind of annoying, but I haven't found any workaround on = this... besides this small inconvenient, it works just as good as it = gets. Stop Tomcat: No issues on this target... is executed fine and returns the control = fine. Thanks for your help. I really appreciated it and was very helpful. BTW, these are my settings, in case you have something similar OS: Win2K JDK: 1.3.1 / 1.4.1_02 ANT: 1.5.2 Jakarta Tomcat: 4.1.27 Regards Luis G Conelly Mobile (+52)(449)123-8749 There are 10 kinds of programmers: * Those who know binary code * Those who does not -----Original Message----- From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] Sent: Tuesday, November 11, 2003 9:39 PM To: Ant Users List Subject: Re: task On Wed, 12 Nov 2003 01:57 pm, Jing Xue wrote: > Quoting "Conelly, Luis (EM, DDEMESIS)" : > > [snip] > > > 1. Does task just support .exe files (which I think it is = not, > > since the task executes other files in other OS environments besides > > Windows)? > > You can't exec a batch file in Windows directly. You have to do = something > like (untested): You can execute a bath file by using vmlauncher=3D"false". I think you = can also=20 execute a batch file by givin the full path to it but I'm not 100% on = that Conor --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org