Installing ANT on Windows and or Mac OS X

I'm gonna try and cover the two OS's here so be kind.

First things first, goto http://ant.apache.org/bindownload.cgi and download the appropriate archive (zip) file: apache-ant-[VERSION NUMBER HERE]-bin.zip

Posted: 27-Jun-2007

View: 12550

Permalink: here

Comments

Andy?............. Go celebrate mate and leave this nerdy stuff alone for a while ;)

#1 Big Mad Kev
28/Jun/07 6:14 AM

Don't worry Kev, the alcohol hasn't stopped .. i'm just slowly building up to prepare my body for some abusive drinking come the weekend

#2 Andy J
28/Jun/07 9:04 AM

If he was a real nerd he would have proposed with a build.xml file :) I'll add this to my wiki!

#3 Jim Priest
28/Jun/07 12:18 PM

In my nerd days, I once asked my girlfriend on a date using the Wizard from Microsoft Agent :P

http://www.microsoft.com/msagent/default.asp

#4 tony petruzzi
28/Jun/07 12:59 PM

If Andy was a real nerd he wouldn't be able to approach a girl to start with ;)

#5 Big Mad Kev
28/Jun/07 1:04 PM

I did consider building a CFC that would except her answer as a boolean and only return it to me as a true value ... no chance of unexpected bugs then

#6 Andy J
28/Jun/07 1:38 PM

Anyone know if you can pass in attributes to the build.xml file?

#7 Critter
29/Jun/07 10:05 AM

@Critter, easier to explain in a post :o)
http://www.andyjarrett.co.uk/andy/blog/index.cfm/2...

#8 Andy J
29/Jun/07 10:51 AM

aye.

danke

#9 Critter
29/Jun/07 11:57 AM

Here's a windows installer for Ant that I made: http://code.google.com/p/winant/
I hope it's useful, and let me know if you'd like to develop it further.

#10 Mason Simon
07/Jul/07 7:36 AM

Very usefull, thanks a lot!

#11 Johnny Metal
17/May/08 2:40 AM

Thanks Andy for this tutorial.
Really Helped me.. someone new to ANT.
Cheers !!!
Sriram

#12 Sriram Rajagopalan
28/May/09 8:38 PM

im not able to buildfile using xml program given in this site..... can u please help me building file

#13 rashmi
18/Apr/10 7:47 PM

Hi Andy,

I have installed ant 1.8.1 on my Windows XP and set the path varieable to the bin folder of ant.
But, when i typed 'ant' in command line i am getting this error messaeg-
'ant' is not recognized as an internal or external command,
operable program or batch file.

Can you please help me in this ?

#14 suresh
25/Jun/10 2:16 PM

@suresh I haven't been on Windows for a while. First off have you tried a reboot and checked that the variable paths were saved?

#15 Andy Jarrett
26/Jun/10 7:31 AM

@suresh, I was having these problems too, I don't think changing the environmental variables takes effect until you reboot. Try setting them in the instance of the command line prompt you have running.

@Andy, thanks for this, I was muddling through the Apache Ant docs and getting nowwhere, can be frustrating as I don't even want ANT, I just want what it will build for me!

#16 Shaun McCran
19/Jan/11 1:27 AM