【发布时间】:2010-03-12 00:28:42
【问题描述】:
我的构建是一个 3 步过程。运行ant来构建。将战争转移到服务器。触摸重新加载文件。
我已经使用 antbuilder 转移了 groovy 中的最后两个步骤。但是,我无法使用 groovy 运行现有的 ant 脚本。
通常我在 dos 提示符下使用以下命令运行它:
ant -Dsystem=mysystem -DsomeotherOption=true
当我尝试做时来自 groovy
"ant -Dsystem=mysystem -DsomeotherOption=true".execute()
它给出了一个错误,说 ant 不是一个可识别的命令。
如何在 groovy 中使用我现有的 ant 脚本?
【问题讨论】: