Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: Need to convert windows batch script (build script) to ant 's build.xml

AW: Need to convert windows batch script (build script) to ant 's build.xml

2007-07-26       - By Jan.Materne@(protected)

cls
You dont use this in Ant. Ants output is passed to (maybe several) listeners
and they dont support cleaning previous output. Writing to STDOUT is only one
listeners.

xcopy
<copy>

cd
No use in Ant. You work with relative (to the buildfile or <project basedir>)
paths. Some tasks support a "dir" attribute for specifying where to launch
external programs.

mv
<move>



I am not sure that there is some general translation guide/tool cmd2ant ...


Jan



>-----Urspr?ngliche Nachricht-----
>Von: Sayed, Irfan (Irfan) [mailto:isayed@(protected)]
>Gesendet: Donnerstag, 26. Juli 2007 15:37
>An: user@(protected)
>Betreff: Need to convert windows batch script (build script)
>to ant's build.xml
>
>Hi All,
>
>I have one build script which is totally in windows batch script. I am
>planning to convert that script in Ant's build.xml.
>
>Batch script contains all the windows related commands such as
>cls,xcopy,cd,dir,mv etc. Now for me , as i am very new to Ant world ,
>very difficult to write task for each operation.
>
>I have gone through the manual pages of ant.apache.org site but did not
>find what i want.
>
>Can somebody please guide me in converting this batch script to Ant's
>build.xml.
>
>Please help.
>
>Regards
>Irfan.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.