Installing ANT on Windows and or Mac OS X
Then for Windows: Extract the .zip to c:\ant. From the command line set the following environment variables:
For Mac: Unpack the zip file to /usr/local/ant/. Then from the command line set the following environment variables:
Now open up the Terminal(Mac)/Command line(Win) and just type "ANT" and hit return. You should see:
Buildfile: build.xml does not exist!
To demonstrate calling a file we're gonna create a quick build.xml. Create a new text file, enter the following bit of XML and save it as build.xml
ant -buildfile c:\build.xml
If you are on Mac then just save this to the desktop and from the Terminal run:
ant -buildfile ~/desktop/build.xml
You should now see
[echo] Is anybody out there
Total time: 0 seconds
That's pretty much it, from here you you are now set to run Ant from the Terminal/Command line so in theory you should be able to schedule tasks etc!