I wanted to exclude certain files/packages from getting instrumented in clover.
Used following different entries in build.xml
<clover-setup>
<files>
<patternset>
<exclude name="**/*Utils.java"/>
</patternset>
</files>
</clover-setup>
and
<clover-setup>
<files excludes="com/test/project/web/utils/Utils.java, **/test/project/web/utils/**" />
</clover-setup>
But the file Utils.java and others in the package are still getting instrumented.
Using Cloverfor ant version 3.1.4.
Hi Anuj!
I'm a little late to answer I was just dealing with the same problem that you did. I also use the correct excludes and it was instrumenting every class.
The problem was that I was using ant or antcall, just add to the call the property "inheritrefs" in "true".
<ant target="build" inheritrefs="true" />
Hope this helps!
Regards,
Gabriel
<clover-setup
>
<files>
<exclude name=
"
**/*EmcUtils.java"
/>
</files>
</clover-setup>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.