Java Mailing List Archive

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

Apache Ant Archive

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

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

2007-07-26       - By Wayne Cannon
Reply:     1     2     3  

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@(protected)
For additional commands, e-mail: user-help@(protected)


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