Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 37191 invoked from network); 6 Feb 2002 23:25:48 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Feb 2002 23:25:48 -0000 Received: (qmail 25522 invoked by uid 97); 6 Feb 2002 23:25:46 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 25493 invoked by uid 97); 6 Feb 2002 23:25:45 -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 25471 invoked from network); 6 Feb 2002 23:25:45 -0000 From: "Conor MacNeill" To: "Ant Users List" Subject: RE: exec on windows NT Date: Thu, 7 Feb 2002 10:33:22 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: <5.1.0.14.0.20020207093104.00a8eec0@actwelsvr14> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Bevan Arps [mailto:bevan.arps@actfs.co.nz] > > The problem here is that .bat files aren't actually executable - they're > "scripts" that need to be run by command.com (Win 9.x/ME) or cmd.com > (NT/2000/XP). You can "execute" a batch file if you specify the full name of the batch file - i.e. "ant.bat". The real problem is that the underlying VM's Runtime.exec code uses CreateProcess rather than ShellExecute (I'm a bit rusty on Windows stuff these days). Anyway, this also means that things like Perl scripts cannot be executed because they rely on the command shell to provide the "file extension to command processor" mapping. If you set vmlauncher to false, Ant will actually execute the command using an external shell, which is pretty much the same effect that you specify below. > > I forget the exact syntax, but you need to execute a commandline > something > like this: > > cmd /c ant.bat > Conor -- To unsubscribe, e-mail: For additional commands, e-mail: