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

后端 未结 4 2100
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 20:11

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.

4条回答
  •  醉话见心
    2021-01-31 20:45

    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

提交回复
热议问题