RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
sage- From: John Cortell [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 11:20 AM To: Ant Users List Subject: RE: launching Ant from a perl script Sten, thanks for the added info. It seems putting an 'exit /b' at the end of ant.bat has the same effect as putting a 'goto

RE: launching Ant from a perl script

2005-03-11 Thread Dick, Brian E.
Subject: RE: launching Ant from a perl script Sten, thanks for the added info. It seems putting an 'exit /b' at the end of ant.bat has the same effect as putting a 'goto: eof' which has the same effect as leaving ant.bat unmodified (sort of like putting a return statement

RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
ilto:[EMAIL PROTECTED] > Sent: Friday, March 11, 2005 4:35 PM > To: Ant Users List > Subject: RE: launching Ant from a perl script > > The "exit" command terminates the command shell and not the bat file. > You exit a bat file by "goto :eof". -

Re: launching Ant from a perl script

2005-03-11 Thread Peter Reilly
lto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:56 AM To: user@ant.apache.org Subject: RE: launching Ant from a perl script From the Windows XP on-line help: EXIT [/B] [exitCode] /B specifies to exit the current batch script instead of CMD.EXE. If executed from outsi

RE: launching Ant from a perl script

2005-03-11 Thread Dick, Brian E.
You learn something new everyday. I always cringe when I type "goto". Now, maybe that twitch will go away. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:56 AM To: user@ant.apache.org Subject: RE: launching Ant from a p

RE: launching Ant from a perl script

2005-03-11 Thread sten.rosendahl
ect: RE: launching Ant from a perl script > > The "exit" command terminates the command shell and not the bat file. > You exit a bat file by "goto :eof". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
Indeed. The 'exit' fixes the return-code problem when launching the bat file from a perl script, but clearly, the 'exit' introduces a much bigger problem if you're just executing bat files sans perl. Definitely not something that should be added to run.bat in production! Thanks for the correcti

RE: launching Ant from a perl script

2005-03-11 Thread Dick, Brian E.
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 [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 9:34 AM To: Ant Users List Subject: RE: launching Ant from a perl

RE: launching Ant from a perl script

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

RE: launching Ant from a perl script

2005-03-11 Thread Keith Hatton
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 in

Re: Re: launching Ant from a perl script

2005-03-10 Thread cortell
Date: 2005/03/10 Thu PM 11:10:11 EST > To: "Ant Users List" > Subject: Re: launching Ant from a perl script > > The problem is not that ant uses a .bat file, it is that the .bat file uses > 'setlocal' and 'endlocal' statements which causes the system to restor

Re: launching Ant from a perl script

2005-03-10 Thread Ronen Mashal
The problem is not that ant uses a .bat file, it is that the .bat file uses 'setlocal' and 'endlocal' statements which causes the system to restore old system values, including errorlevel !! Even if you try to call the ant.bat file from another .bat file, you'll get errorlevel set to its previous v