ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dick, Brian E." <>
Subject RE: launching Ant from a perl script
Date Fri, 11 Mar 2005 15:34:43 GMT
The "exit" command terminates the command shell and not the bat file.
You exit a bat file by "goto :eof".

-----Original Message-----
From: John Cortell [] 
Sent: Friday, March 11, 2005 9:34 AM
To: Ant Users List
Subject: RE: launching Ant from a perl script

I had tried that, too, but that opens up a different can of worms. The
script I'm writing can't assume that .pl is registered as an executable 
extension (such that one can simply type, for example,, at a 
command line and the file will automatically by fed to perl.exe). So I 
can't do something like:

         ` -version`;

in my perl script. It would have to be

         `perl $ENV{ANT_HOME}/bin/ -version`;

OK. That works, but my actual scenario is more complicated. I'm not 
directly writing a perl script but rather composing a data file. In the 
data file, I'll be specifying a literal string that will be invoked as a

command in a perl script. Yes; it's all very messy and I'll spare you
the gory details. I could probably make that work with some enhancements
the system I'm working with, but that's a lot of work that could be
if ant.bat file simply returned the error code.

Since I can fix *that* issue by simply adding an 'exit' at the end of 
ant.bat, that's what I'll probably do. Hopefully someone in the Apache
development team is following this thread and makes the change in the 
production bat file.

Thanks for the suggestion,

At 05:54 AM 3/11/2005, Keith Hatton wrote:
>Isn't there a in your ANT_HOME/bin?

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message