Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Installing / using ANT

Installing / using ANT
Thread Tools
Jens Peter
Senior User
Join Date: Apr 2002
Location: Aarhus, Denmark
Status: Offline
Reply With Quote
Jan 9, 2004, 04:03 PM
 
Hi,

I have been using ANT on windows for a while, and would like to do the same on my mac.
I've downloaded ANT 1.6.0, placed it in '/usr/local/ant' and tried to add ANT_HOME to my path. But everytime I take a new shell, ant is not in my path.
I cant run that ant script that runs on my win-box, I just get an error in terminal. And writing "ant" dosen't do anything either.

So, how do I install it, and how do I execute a script ?

Please, is there somewhere a tutorial that explaing it, or can someone spare 5 minutes and do it ? I've tryed Google, but haven't found anything usefull.

Jens Peter
     
suthercd
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Jan 9, 2004, 09:49 PM
 
You need to set the ANT_HOME env variable. I use bash so here is the line in my .bash_profile:
Code:
export ANT_HOME=/usr/local/ant/apache-ant-a.6beta2
Of course you need to point at the location of your own ant install.

HTH
Craig
     
Jens Peter  (op)
Senior User
Join Date: Apr 2002
Location: Aarhus, Denmark
Status: Offline
Reply With Quote
Jan 10, 2004, 09:40 AM
 
Someone at a danish macsite gave me this link:
How To Installe Ant on OS X

Now, it works
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:09 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,