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
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
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".
-
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
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
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]
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
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
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
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
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
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
12 matches
Mail list logo