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.
try looking in /usr/bin folder .. it should tell you where it is installed.
The default installation directory is /Applications/APPNAME-VERSION.
Mac OS X Leopard (version 10.5) is the sixth major release of macOS, Apple's desktop and server operating system for Macintosh computers.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With