jacoco/jacoco — pull request #102 by andrey81inmd (2013-05-07 18:12:33+00:00)
Title: Ability to specify excludes via file

I'd like to add the ability to specify jacoco excludes via a file. Currently, it seems only 2 mechanisms exist for excluding code from coverage metrics:
1. Specify "excludes" parameter in the pom
2. Add annotations to code you want to exclude

Neither of these really work well to solve the problem we have. We have a large legacy codebase, where unit test standards were not observed. We want to introduce a check in the build for some % of code coverage. In order to do this, we have to exclude hundreds of files from the metrics. We don't want to put that into the pom, and we don't want to modify all these files with annotations.

The solution we came up with basically uses the same mechanism as the existing "excludes" plugin parameter, it just loads the list of files from a file.