ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wolfgang häfelinger <whaefelin...@gmail.com>
Subject Re: Ant on Mac OS X
Date Sun, 09 Mar 2014 11:01:02 GMT
*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.*

How about to use this one-liner?

$ mkdir tmp && (wget -qO-
http://mirror.synyx.de/apache/ant/binaries/apache-ant-1.9.3-bin.tar.gz |
tar xz -C ./tmp) && ./tmp/apache-ant-1.9.3/bin/ant -version
Apache Ant(TM) version 1.9.3 compiled on December 23 2013

Pretty easy on MacOS although this one-liner requires wget which is not
installed by default to my knowledge. However, curl is. Thus

$ mkdir tmp && (curl
http://mirror.synyx.de/apache//ant/binaries/apache-ant-1.9.3-bin.tar.gz |
tar xz -C ./tmp) && ./tmp/apache-ant-1.9.3/bin/ant -version

Is it really so difficult to get Ant running on a Mac?



On Sat, Mar 8, 2014 at 7:24 PM, Tony Anecito <adanecito@yahoo.com> wrote:

> I do have xcode but I am using Java for OS X and my preference is to have
> the build environment separate from the IDE when doing final builds for QA
> and prod environments. Removes a lot of risk and improves repeatability.
>
> Thanks for the feedback.
> -Tony
>
>
>
> On Saturday, March 8, 2014 10:59 AM, Carlos Araya <carlos.araya@gmail.com>
> wrote:
>
> Tony,
>
> Doesn't Ant come bundled with Xcode? If you're doing any sort of
> development on OS X it would pay to install the dev tools and then check if
> ant gets installed with it and it may not be the current version.
>
> Carlos
>
>
>
> On Fri, Mar 7, 2014 at 7:12 AM, Harold Putman <hputman@lexmark.com> wrote:
>
> > brew install ant
> >
> > See http://brew.sh/
> >
> >
> >
> >
> > On Wed, Mar 5, 2014 at 10:12 PM, Tony Anecito <adanecito@yahoo.com>
> wrote:
> >
> > > Many Many Thanks!!
> > >
> > > -Tony
> > >
> > >
> > >
> > >
> > >
> > > On Wednesday, March 5, 2014 6:28 PM, BryanBerg <bberg@spawar.navy.mil>
> > > wrote:
> > >
> > > 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 <lists@pbw.id.au>
> > 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 <adanecito@yahoo.com> 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
> > >
> >
> >
> >
> > --
> > Harold PUTMAN
> > Web Technology Specialist
> > *Lexmark International, Inc. <http://www.lexmark.com/>*
> > 740 W New Circle Rd.
> > Lexington, KY 40550
> > +1(859) 232-2839
> > hputman@lexmark.com
> >
>



-- 
Wolfgang Häfelinger

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message