是否可以指定蚂蚁的build.xml里面记录? [英] Is it possible to specify logger for ant inside build.xml?
问题描述
是否可以指定内部的build.xml $蚂蚁监听器/记录器 C $ C>,而不是在命令行上?
Is it possible specify Ant listener/logger inside build.xml
, not on a command line?
推荐答案
在有可能利用蚂蚁的API,并创建一个内部任务构建文件。结果
即使用Groovy =>的http://josefbetancourt.word$p$pss.com/2011/08/18/buildlistener-groovy-scriptdef/
它也可以调整构建文件里面的日志级别,请参阅:结果
http://stackoverflow.com/a/5464009/130683 结果
http://stackoverflow.com/a/5479606/130683
Within the buildfile it's possible to make use of the ant api and create an internal task via scriptdef
.
i.e. implemented with groovy => http://josefbetancourt.wordpress.com/2011/08/18/buildlistener-groovy-scriptdef/
It's also possible to adjust the loglevel inside the buildfile, see :
http://stackoverflow.com/a/5464009/130683
http://stackoverflow.com/a/5479606/130683
这篇关于是否可以指定蚂蚁的build.xml里面记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!