Isn't there a runant.pl in your ANT_HOME/bin?
-----Original Message----- From: John Cortell [mailto:[EMAIL PROTECTED] 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 invocation when using perl. The problem is that the Ant front end is a .bat 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 this case), perl does not capture the return code from that underlying application. In case this is confusing, let me spell out exactly what's going on. If in 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]