You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sayed, Irfan (Irfan)" <is...@avaya.com> on 2007/07/26 15:36:48 UTC
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.
Re: Need to convert windows batch script (build script) to ant's
build.xml
Posted by Wayne Cannon <wc...@turinnetworks.com>.
The "Ant in Action" book is well worth the investment if you expect to
continue using Ant at all. It includes a section on migration from
other build approaches. --Wayne
Sayed, Irfan (Irfan) wrote:
> 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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Need to convert windows batch script (build script) to ant's
build.xml
Posted by Wayne Cannon <wc...@turinnetworks.com>.
Up front, let me say that I am relatively new to using Ant.
Ant's declarative approach is significantly different than the
sequential/procedural approach of script files and most other
languages. I like to think of it as "goal"-oriented as opposed to
"process" oriented, if that helps. I respectfully suggest that you will
be most effective simply examining the script for "goals" that it
accomplishes, and then creating Ant tasks to accomplish the same goals.
I've played with the demo of a product called Virtual Ant that may be
helpful making a more direct conversion. Basically, Virtual Ant gives
you a user interface similar to Windows Explorer. You perform your
script's operations (copy, compile, jar, etc.) using their "virtual"
interface, and it creates an Ant build.xml that corresponds with the
operations you performed. I'm sure it will be sub-optimal, but should
at least get you started.
--Wayne
Sayed, Irfan (Irfan) wrote:
> 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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org