【问题标题】:passing a location of build.xml in ant在 ant 中传递 build.xml 的位置
【发布时间】:2014-02-06 04:08:22
【问题描述】:

我正在尝试运行一个使用 ANT 构建的脚本,但我不想从我的 build.xml 文件所在的位置运行它。有没有办法将位置传递给蚂蚁?

【问题讨论】:

    标签: linux ant


    【解决方案1】:

    使用-buildfile 选项。例如

    $ cd /some/other/directory/
    $ ant -buildfile /path/to/build/file.xml
    

    对此有两个同义选项,-file-f。因此,您可以使用任何一个

    $ ant -file /path/to/build/file.xml
    

    $ ant -f /path/to/build/file.xml
    

    【讨论】:

      猜你喜欢
      • 2014-06-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-23
      • 2014-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-31
      相关资源
      最近更新 更多