ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Difficulty calling a batch file on windows with <exec>- requires use of '.bat' extension
Date Wed, 21 Mar 2001 23:46:26 GMT
> 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/

Mime
View raw message