You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bevan Arps <be...@actfs.co.nz> on 2001/03/22 00:12:37 UTC
Re: Difficulty calling a batch file on windows with - requires use
of '.bat' extension
Deepak Balakrishna wrote:
> I am uable to call a Windows batch script (say
> test.bat) from ANT by leaving out the '.bat' extension
The ability to leave out .exe or .com actually originates with the
Windows API call "CreateProcess".
I don't believe that Ant does anything except pass through the
executable attribute straight through the JavaAPI to Windows.
How about calling the script iasdeploy.bat on all systems (Solaris
included)? <grin>
Otherwise, I don't have any suggestions.
Cheers,
Bevan.
_______________________________________________________________________
Bevan Arps, OO Analyst email: bevan.arps@actfs.co.nz
ACT Financial Systems "Programming is an Art Form that Fights Back"
***********************************************************************
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
Pacific).
***********************************************************************
Re: Difficulty calling a batch file on windows with - requires use of '.bat' extension
Posted by Diane Holt <ho...@yahoo.com>.
> Deepak Balakrishna wrote:
>
> I am uable to call a Windows batch script (say
> test.bat) from ANT by leaving out the '.bat' extension
How about setting a "bat" property only on your Windows machines (ie.,
bat=".bat"), then referencing the script as "test${bat}"? On machines
that don't have ${bat} defined, it should resolve to just "test". (Sorry
I can't test it to be sure at the moment, but it seems like it should
work.)
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/