Filter for jar-file by analyse with findbugs
I have a jar-file, which I 开发者_运维知识库want analyze with findbugs through build.xml. I use "class location =....jar" - pattern. The jar-file contains several folders, but I need to analyze only one folder. How can I specify that ? Thanks in advance !
You need to use a filter file, a filter file can say what file patterns to include, exclude among other things... There's documentation here http://findbugs.sourceforge.net/manual/filter.html
There is a patch for findbugs that adds support for nested filesets. You can probably combine this with Ant's zipfileset
to filter the folder you want.
The patch is on the findbugs sourceforge page.
精彩评论