Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 60824 invoked from network); 11 Mar 2005 12:54:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 12:54:32 -0000 Received: (qmail 71775 invoked by uid 500); 11 Mar 2005 12:54:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 71691 invoked by uid 500); 11 Mar 2005 12:54:25 -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 71619 invoked by uid 99); 11 Mar 2005 12:54:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO pegasus.axiomsystems.com) (194.42.245.4) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Mar 2005 04:54:23 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: launching Ant from a perl script Date: Fri, 11 Mar 2005 12:54:19 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: launching Ant from a perl script Thread-Index: AcUl2YPnVlIY/96PQvCpze2Id2/5yAAX9Rfg From: "Keith Hatton" To: "Ant Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Isn't there a runant.pl in your ANT_HOME/bin? -----Original Message----- From: John Cortell [mailto:cortell@cox.net]=20 Sent: 11 March 2005 00:53 To: user@ant.apache.org Subject: launching Ant from a perl script Hi, I'm having a tough time figuring out how to get the return code from an Ant=20 invocation when using perl. The problem is that the Ant front end is a .bat=20 file (I'm working on Windows). When you invoke a bat file from perl, and that bat file in turn invokes something else (the Java Ant application in=20 this case), perl does not capture the return code from that underlying=20 application. In case this is confusing, let me spell out exactly what's going on. If in=20 a perl file, I have the following: `ant -xyz`; # invalid invocation; will clearly fail print("error is $?\n"); , when I run it, I get: error is 0 Surely, people are using Perl to drive Ant builds, so I'm sure there's a simple answer to this, but I just can't find it. John --------------------------------------------------------------------- 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