ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <pritesh.saha...@wipro.com>
Subject RE: usage of exec
Date Wed, 20 Jul 2005 13:14:53 GMT

Thanks Brain, I have figured out the things something like this
Build.xml
---------
<property name="common.4all" location="D:/"/>
<property name="source.back" location="D:/CDImages"/>
<property name="pd.update" location="${source.back}MD1020/MCClient"/>
<property name="wash.sign" location="${common.4all}/sign"/>
<property name="wash.image1020" location="${pd.update}/KAL-Std55-81"/>
<property name="wash.image1010" location="${pd.update}/KAL-Std8-5"/>

     <!-- ============================================================
-->
<!-- Generating Sign files                                        -->
<!-- ============================================================ -->

<target name="gen-sign">
   <exec executable="${wash.sign}/signdirectory.exe" failonerror="true"
output="SignLog_${today.date}.txt">
        <arg line="${wash.sign} ${wash.image1020}\Client1
${wash.image1020}\Client1"/>
   </exec>
.
.
.
</target>

and things has started working out, but its in a very early stage so I
will be posting the doubts frequently

Thanks
Pritesh
-----Original Message-----
From: Dick, Brian E. [mailto:Brian.Dick@FMR.com]
Sent: Wednesday, July 20, 2005 6:31 PM
To: Ant Users List
Subject: RE: usage of exec

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
following.

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

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: pritesh.saharey@wipro.com [mailto:pritesh.saharey@wipro.com]
Sent: Tuesday, July 19, 2005 11:13 PM
To: user@ant.apache.org
Cc: peterreilly@apache.org
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:

//---------------------------------
Sign.cmd
--------
	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





d:
cd \



REM *** Generate Sign File ****

cd %NEB_IMAGE%\

%NEB_SIGN%\signdirectory  %NEB_MD5%  %NEB_IMAGE%\Client1
%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.

Regards,
Pritesh



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
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




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 Mailadmin@wipro.com
immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message