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的場景。