IAmYourFaja
IAmYourFaja

Reputation: 56912

Configuring Cobertura with Ant

I'm trying to get Cobertura working for my project's Ant build, and all I have to work with are the documentation/FAQs and a sample build.xml that uses cobertura, but apparently never worked (ha!).

Thanks in advance for any help here.

Upvotes: 2

Views: 1919

Answers (1)

gareth_bowles
gareth_bowles

Reputation: 21130

tasks.properties is bundled inside the cobertura JAR file; you can view it like so on a UNIX-like system:

jar xf cobertura.jar tasks.properties; cat tasks.properties 

You could put cobertura.jar in the lib subdirectory of your local Ant installation if you want to it always be available, but IMO it's better to store it in a separate location and add it to your classpath explicitly in your build file. This prevents unwanted classes from being loaded in other builds.

Upvotes: 1

Related Questions