Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle - how to run ant task with "-" in name

I want to use cobertura in my gradle build so I created task in this way:

ant.typedef(resource: 'tasks.properties', classpath:configurations.cobertura.asPath)

And now I want to run cobertura-instrument. The problem is that I don't know how to run this task because ant.cobertura-instrument(...) won't work. Is there some other way to run it? For example something like this ant.tasks['cobertura-instrument'](...)

like image 249
pepuch Avatar asked Feb 17 '23 02:02

pepuch


1 Answers

You can also use the task like this ant."cobertura-instrument"(...).

like image 83
Benjamin Muschko Avatar answered May 02 '23 10:05

Benjamin Muschko