ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bevan Arps <>
Subject RE: exec on windows NT
Date Wed, 06 Feb 2002 20:33:48 GMT
At 17:58 5/02/2002 +0530, Sujan Digumarti wrote:
>The build script i used is like this
><target name="one">
><exec dir="c:\ant\bin" executable="ant" >
><arg value="-version" />
>ant.bat is present inside the directory c:\ant\bin
>i tried the variation ant.bat it gives me the same error.

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 

I forget the exact syntax, but you need to execute a commandline something 
like this:

cmd /c ant.bat

Read the help for cmd.exe on your system, and search the archives of this 
list ( for more 
information - this question has come up many times before.

Hope this helps,

"Programming is an Art Form that Fights Back"

Bevan Arps (<>
Senior OO Analyst, ACT Financial Systems

This communication  is confidential  to ACT  Financial  Systems  (Asia 
Pacific)  and is intended for  use only by the  addressee.   The  views and 
opinions  expressed in  this email  are the senders  own and do not 
represent  the  views  and  opinions of  ACT  Financial  Systems  (Asia 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message