ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dick, Brian E." <>
Subject RE: usage of exec
Date Wed, 20 Jul 2005 13:01:20 GMT
To run batch files you need to specify the dos shell for the executable
attribute and specify the batch file as an argument. Something like the

<exec executable="cmd.exe">
   <arg value="/C"/>
   <arg value="Sign.cmd"/>

Although, I prefer to re-implement batch files as a macrodefs and use
pure ant tasks as much as possible. If your executables are available on
other platforms, then this makes your build cross-platform.

-----Original Message-----
From: [] 
Sent: Tuesday, July 19, 2005 11:13 PM
Subject: usage of exec

Hi All,
       I want to use one of my batch file into my build.xml file, the
batch file is as follows:

	Set 	NEB_MD5=d:\sign
	Set 	NEB_SIGN=d:\sign
	Set 	NEB_IMAGE=D:\cdimages\MD1020\MCClient\KAL-Std55-81
	Set 	NEB_IMAGE1=D:\cdimages\MD1020\MCClient\KAL-Std8-5
	set 	DOSUNIX=D:\Uddu

cd \

REM *** Generate Sign File ****


%NEB_SIGN%\signdirectory  %NEB_MD5%  %NEB_IMAGE%\Client1

%NEB_SIGN%\signdirectory  %NEB_MD5%  %NEB_IMAGE%\Client2
%NEB_IMAGE%\Client2 %NEB_SIGN%\signdirectory  %NEB_MD5%
%NEB_IMAGE%\Client3 %NEB_IMAGE%\Client3

cd %NEB_IMAGE1%\
%NEB_SIGN%\signdirectory  %NEB_MD5%  %NEB_IMAGE1%\Client1
%NEB_IMAGE1%\Client1 %NEB_SIGN%\signdirectory  %NEB_MD5%
%NEB_IMAGE1%\Client2  %NEB_IMAGE1%\Client2


The D:\sign folder contains two exe files signdirectory.exe and md5.exe,
these two exe files are being used for generating sign files.

Can anyone help me out in using this sign.cmd file in my build.xml file,
I will be thankful to you.


Confidentiality Notice

The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or immediately
and destroy all copies of this message and any attachments.

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

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

View raw message