Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A51FD10B3C for ; Thu, 6 Mar 2014 01:28:23 +0000 (UTC) Received: (qmail 23002 invoked by uid 500); 6 Mar 2014 01:28:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 22902 invoked by uid 500); 6 Mar 2014 01:28:22 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 22894 invoked by uid 99); 6 Mar 2014 01:28:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 01:28:22 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bberg@spawar.navy.mil designates 128.49.4.2 as permitted sender) Received: from [128.49.4.2] (HELO ins1.sd.spawar.navy.mil) (128.49.4.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 01:28:18 +0000 Received: from [IPv6:2001:480:10:76:bcfa:b4ad:7ff5:14bc] ([IPv6:2001:480:10:76:bcfa:b4ad:7ff5:14bc]) (authenticated bits=0) by ins1.sd.spawar.navy.mil (8.13.1/8.13.1) with ESMTP id s261Rt4q017860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 5 Mar 2014 17:27:56 -0800 Message-ID: <5317CEF9.1010404@spawar.navy.mil> Date: Wed, 05 Mar 2014 17:27:21 -0800 From: BryanBerg User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Ant Users List Subject: Re: Ant on Mac OS X References: <1394053400.52720.YahooMailNeo@web121801.mail.ne1.yahoo.com> <1394063443.87410.YahooMailNeo@web121803.mail.ne1.yahoo.com> In-Reply-To: <1394063443.87410.YahooMailNeo@web121803.mail.ne1.yahoo.com> Content-Type: multipart/alternative; boundary="------------020806000705030809000303" X-Virus-Checked: Checked by ClamAV on apache.org --------------020806000705030809000303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit It does, I have it installed on OS X, separate from my IDE. Ant installation instructions are also at: http://ant.apache.org/manual/index.html Be certain to add ant-contrib-1.0b3.jar into your ANT_HOME installation directory, I'm not sure if this was specified in the instructions, but not having this jar gave me some hiccups. Bryan On 3/5/14 3:50 PM, Tony Anecito wrote: > I am already using Eclipse on the Mac. I usually setup a build environment separate from an IDE. I know Windows is different but was hoping since Ant uses Java that it would work under OS X. > > Thanks, > -Tony > > > > On Wednesday, March 5, 2014 3:14 PM, Peter West wrote: > > Download the binary distribution (latest is 1.9.3) from http://ant.apache.org/bindownload.cgi > > Unzip (or gunzip) the distribution somewhere on your system. If you are happy using sudo, you can put it in /usr/local, for example. Otherwise, put it in you home directory at a convenient location. > > It's a good idea to create a softlink to the distribution directory. So if you have /Users/me/software/apache-ant-1.9.3, create a link like so: > $ cd /Users/me/software > $ ln -s apache-ant-1.9.3 ant > > Now you can set the ANT_HOME environment variable to /Users/me/software/ant, and when you install a new distribution of ant, you only have to delete the old link and create a new one. > > In /users/me/software/ant is a directory bin which contains the shell scripts (compatible with linux/unix and os x) which will be used to run ant. You need to make sure that the bin directory is on your PATH. > > In your .profile, add the following. > > Near the top of the file, define these functions: > > set_env_var () { > eval export $1=\""$2"\" > eval launchctl setenv "$1" \""$2"\" > } > > unset_env_var () { > unset $1 > eval launchctl unsetenv "$1" > } > > Anywhere below that in .profile, you can now define environment variables that will also be set for programs that run directly from the GUI. > > After your PATH environment variable has been set, add this: > > set_env_var ANT_HOME /Users/me/software/ant > > PATH="$PATH:$ANT_HOME/bin" > export PATH > launchctl setenv PATH "$PATH" > > > Peter West > > ...and again, as his custom was, he taught them. > > > On 6 Mar 2014, at 7:03 am, Tony Anecito wrote: > >> Hi All, >> >> I am new to Mac OS X. What is the easiest way to get Ant running on OS X? I tried copying my ant folder from Windows to Mac OS X and it would not run. >> >> Thanks! >> -Tony > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------020806000705030809000303--