在巡航控制中将选项传递给蚂蚁

时间:2012-04-25 16:30:23

标签: ant cruisecontrol

我在config.xml文件中有以下代码:

<schedule interval = "300">
    <ant     anthome="/usr/share/ant"
         antworkingdir="${GitDir}"
         uselogger="true"
         usedebug="true"/>
</schedule>

当我通过它执行构建时,我只是得到输出,就像我在命令行中只输入ant一样。 我需要能够从Cruisecontrol执行以下命令:

ant debug

如果这有任何区别,我需要能够构建Android应用程序。 怎么做到这一点? 提前谢谢你。

1 个答案:

答案 0 :(得分:0)

您已经在config.xml中使用正确的属性来启动使用loglevel debug的ant脚本

...
usedebug="true"
...

相当于ant -debug ...
有关详细信息,请参阅http://cruisecontrol.sourceforge.net/main/configxml.html#ant

相关问题