Mac OS X 雪豹默认安装 ant 在哪里? [英] where is ant installed on Mac OS X snow leopard by default?
本文介绍了Mac OS X 雪豹默认安装 ant 在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有设置ANT_HOME,所以我想找到ant的主目录在哪里.我使用的是 OSX 安装中默认安装的 ant 版本.
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.
推荐答案
按照以下说明查找任何包的位置:
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
所以,我愿意:
ls -l /usr/bin/ant
在我的机器上报告:
lrwxr-xr-x 1 root wheel 22 Nov 30 17:09 /usr/bin/ant -> /usr/share/ant/bin/ant
所以,我愿意:
ls -l /usr/share/ant
并得到:
lrwxr-xr-x 1 root wheel 14 Nov 30 17:09 /usr/share/ant -> java/ant-1.8.1
由此我可以推测 ant 安装在 /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
这篇关于Mac OS X 雪豹默认安装 ant 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文