macosantosx-leopard

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.


Solution

  • 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