ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: exec on windows NT
Date Wed, 06 Feb 2002 23:33:22 GMT
> From: Bevan Arps []
> The problem here is that .bat files aren't actually executable - they're
> "scripts" that need to be run by (Win 9.x/ME) or
> (NT/2000/XP).

You can "execute" a batch file if you specify the full name of the batch
file - i.e. "ant.bat". The real problem is that the underlying VM's
Runtime.exec code uses CreateProcess rather than ShellExecute (I'm a bit
rusty on Windows stuff these days). Anyway, this also means that things like
Perl scripts cannot be executed because they rely on the command shell to
provide the "file extension to command processor" mapping.

If you set vmlauncher to false, Ant will actually execute the command using
an external shell, which is pretty much the same effect that you specify

> I forget the exact syntax, but you need to execute a commandline
> something
> like this:
> cmd /c ant.bat


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

View raw message