exclude doesn't work in ant (ant-maven plugin)

50 views
Skip to first unread message

yevsh

unread,
Nov 14, 2016, 4:59:07 AM11/14/16
to JaCoCo and EclEmma Users
<structure name="jacoco Coverage Project">
<group name="jacoco">
<classfiles>
    <fileset dir="${basedir}/libs/">
   <exclude name="**/com/loader/**/*.*"/>
</fileset>
</classfiles>
</group>
</structure>


But in the generated html report I see package:
com.loader.pparams

and when I click on it I see the classes inside

Evgeny Mandrikov

unread,
Nov 14, 2016, 5:41:25 PM11/14/16
to JaCoCo and EclEmma Users
I guess that you should exclude it from the list of source files.

Marc Hoffmann

unread,
Nov 15, 2016, 9:28:28 AM11/15/16
to jac...@googlegroups.com
Hi,

just guessing: what is in your "${basedir}/libs/" folder? JAR files? In
this case the exclude rule will not work. You need to unzip the JARs
first and specify the files set on the class files.

Cheers,
-marc
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/4a06afe9-9068-42e6-b79b-441ed095b1bb%40googlegroups.com
> [1].
> For more options, visit https://groups.google.com/d/optout.
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jacoco/4a06afe9-9068-42e6-b79b-441ed095b1bb%40googlegroups.com?utm_medium=email&utm_source=footer

yevsh

unread,
Nov 16, 2016, 3:26:24 AM11/16/16
to JaCoCo and EclEmma Users

Thanks.  

zipfileset also worked for me
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages