Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is ant installed on Mac OS X snow leopard by default?

I don't have ANT_HOME set, so i want to find where the home directory of ant is. I'm using the version of ant that was installed by default on my OSX install.

like image 901
czer Avatar asked Jan 27 '11 23:01

czer


People also ask

Where is Ant home on my Mac?

try looking in /usr/bin folder .. it should tell you where it is installed.

Where is the installation location on Mac?

The default installation directory is /Applications/APPNAME-VERSION.

Is OSX Leopard an operating system?

Mac OS X Leopard (version 10.5) is the sixth major release of macOS, Apple's desktop and server operating system for Macintosh computers.


2 Answers

If you run ant -diagnostics, it should tell you where the ant.home is

$ant -diagnostics 

-------------------------------------------
ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
ant.java.version: 1.6
ant.core.lib: /opt/local/share/java/apache-ant/lib/ant.jar
ant.home: /opt/local/share/java/apache-ant 
like image 34
Srikanth Kyatham Avatar answered Oct 02 '22 19:10

Srikanth Kyatham


Follow these instructions to find the location of any package:

whereis ant (replace 'ant' with whatever you're looking for)

On my machine, this reports:

/usr/bin/ant

so, I do:

ls -l /usr/bin/ant

on my machine this reports:

lrwxr-xr-x  1 root  wheel  22 Nov 30 17:09 /usr/bin/ant -> /usr/share/ant/bin/ant

so, I do :

ls -l /usr/share/ant 

and get:

lrwxr-xr-x  1 root  wheel  14 Nov 30 17:09 /usr/share/ant -> java/ant-1.8.1

from this I can surmise that ant is installed at /usr/share/ant/java/ant-1.8.1

like image 144
KevinDTimm Avatar answered Oct 02 '22 19:10

KevinDTimm