如何在Mac上找到Grails / Groovy的安装位置?

时间:2016-07-15 13:01:53

标签: macos grails groovy

我需要知道我的Mac OS上安装了Grails和/或Groovy的目录路径(不确定它们是否相同)?

1 个答案:

答案 0 :(得分:6)

似乎where(bash)或which(ZSH)是您需要的命令:

 ~/ where groovy
/Users/opal/.sdkman/candidates/groovy/current/bin/groovy
 ~/ where grails
/Users/opal/.sdkman/candidates/grails/current/bin/grails

 ~/ which groovy
/Users/opal/.sdkman/candidates/groovy/current/bin/groovy
 ~/ which grails
/Users/opal/.sdkman/candidates/grails/current/bin/grails

顺便说一句:尝试使用sdkman。强烈推荐!