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

后端 未结 4 2116
佛祖请我去吃肉
佛祖请我去吃肉 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:58

    If you run ant -diagnostics, it should tell you where the ant.home is

    $ant -diagnostics 
    
    -------------------------------------------
    ANT PROPERTIES
    -------------------------------------------
    ant.version: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
    ant.java.version: 1.6
    ant.core.lib: /opt/local/share/java/apache-ant/lib/ant.jar
    ant.home: /opt/local/share/java/apache-ant 
    

提交回复
热议问题