【发布时间】:2013-06-24 16:15:03
【问题描述】:
我想在我的 gradle 构建中使用 cobertura,所以我以这种方式创建了任务:
ant.typedef(resource: 'tasks.properties', classpath:configurations.cobertura.asPath)
现在我想运行cobertura-instrument。问题是我不知道如何运行这个任务,因为ant.cobertura-instrument(...) 不起作用。有没有其他方法可以运行它?例如这样的ant.tasks['cobertura-instrument'](...)
【问题讨论】: