views:

94

answers:

1

We're trying to limit Clover to a certain package and therefore have a <fileset> definition in our Ant build file. Everything works fine from the command line (when we specify our known Ant target). But when it comes to the Clover plug-in on Hudson, we don't know which Ant target Hudson uses. Any pointers in using a Clover <fileset> on Hudson?

+1  A: 

Would it be possible to invoke the ant target explicitly as a build step directly (via an Ant step), and then point Hudson at your Clover results via the post-build option? This is how we currently use Hudson+Clover.

mrooney
Just to confirm, with this approach, you can view the Clover results within the job result view, right?
Ates Goral
We've peeked into the clover.xml that comes with the Clover plugin jar and copied the clover.report target into our own Ant build file. We have a clover.setup target that defines the `<fileset>`. In Hudson we run clover.setup, then our own build target and then finally the clover.report target. We then let Hudson collect the Clover results.
Ates Goral