1
我使用MacPorts安装了Gradle,现在我无法找到Gradle home的位置。例如Eclipse询问我的位置,我不知道:使用MacPorts安装的Mac上的Gradle:Gradle home在哪里?
我试图从指定获得which gradle
路径:
$ which gradle
/opt/local/bin/gradle
但它不工作。那么,Gradle家在哪里?
我使用MacPorts安装了Gradle,现在我无法找到Gradle home的位置。例如Eclipse询问我的位置,我不知道:使用MacPorts安装的Mac上的Gradle:Gradle home在哪里?
我试图从指定获得which gradle
路径:
$ which gradle
/opt/local/bin/gradle
但它不工作。那么,Gradle家在哪里?
事实证明,MacPorts在安装/升级Gradle时告诉你Gradle home。安装日志以下面的结尾:
---> Some of the ports you installed have notes:
gradle has the following notes:
Remember to set the environment variable GRADLE_HOME
to the path to the gradle distribution:
/opt/local/share/java/gradle
所以正确的摇篮家在这种情况下是:
/opt/local/share/java/gradle
而且这部作品在上面提到的Eclipse的场景。