Skip to content

Conversation

blindpirate
Copy link
Collaborator

Context

It has been reported in #1094 #1745 and old forum that Findbugs will throw exception when non-jar files exist in classpath. The reason is that FindBugsSpecBuilder doesn't filter files in classpath but Findbugs can only recognize class files and jar files.

This fix adds filter to FindBugsSpecBuilder and provides unit test/integration test.

Contributor Checklist

  • Review Contribution Guidelines
  • Sign Gradle CLA
  • Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
  • Provide unit tests (under <subproject>/src/test) to verify logic
  • Ensure that tests pass locally: ./gradlew quickCheck <impacted-subproject>:check

This fixes gradle#1094

This fixes gradle#1745

It has been reported in issues above that Findbugs will throw exception
 when non-jar files exist in classpath. The reason is that
FindBugsSpecBuilder doesn't filter files in classpath but Findbugs can
only recognize class files and jar files.

This fix filters files to be provide to Findbugs. An unit test and an
integration test have been provided.
@wolfs
Copy link
Member

wolfs commented May 29, 2017

@blindpirate Thank you for your PR!
We already fixed the problem by leaving the filtering to Findbugs, which works well as long as only jars and directories are passed to it: #2102. Could you confirm that it fixes the problem for you?

@blindpirate
Copy link
Collaborator Author

Yes! I have verified #2102 does resolve this problem. Thank you for your outstanding job, I would close this. @wolfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants