Tuesday, March 2, 2010

Automatize your task with ANT (copy folders and subfolder on a click)

Using the same build tool for all your projects simplifies your life and keeps things easier to manage. Many developers (especially Java developers) are already using Ant.

See the example below to copy a bunch of files on the fly.

< target name="_copy-file-local-server" >
< echo message="Copying compiled files -> server folder"/ >
< copy todir="destinationFolder" overwrite="true" >
< fileset dir="sourceFolder" >
< include name="**"/ >
< /fileset >
< /copy >
< /target >

See http://ant.apache.org/ for details

No comments: