# Jacoco Report - Filter Class from a list of JAR archive

**URL:** <https://discuss.gradle.org/t/jacoco-report-filter-class-from-a-list-of-jar-archive/13573>\
**Category:** Help/Discuss\
**Created:** [January 7, 2016, 2:42pm UTC](https://discuss.gradle.org/t/jacoco-report-filter-class-from-a-list-of-jar-archive/13573 "2016-01-07T14:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco\_33](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@marco\_33](https://discuss.gradle.org/u/marco_33)\
**Post date:** [January 7, 2016, 2:42pm UTC](https://discuss.gradle.org/t/jacoco-report-filter-class-from-a-list-of-jar-archive/13573/1 "2016-01-07T14:42:44Z")

</div>

Hello All,

I wanted to generate Code Coverage for my project using Jacoco, but I am not able to filter the classess inside a a JAR archive recursively. I have several JAR archive inside a folder in which I wanted to filter only those classess matching a pattern.

JacocoReport Task accept the ‘classDirectories’ path as FileTree, I did tried for a single JAR by applying filter using zipTree it works perfect, but how do I do for several JAR inside a folder.

Thanks,  
Marco
