Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-2473

Findbugs task does not honor Findbugs extension properties.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.2-rc-1
    • Fix Version/s: 1.3-rc-1

      Description

      My build.gradle contains:

      apply plugin: 'findbugs'
      findbugs

      { toolVersion = '2.0.1' effort = 'min' excludeFilter = file("$rootProject.projectDir/config/findbugs/excludeFilter.xml") }

      This is the same exclude filter that we use in our Maven projects and we get a clean Findbugs run. However, I got Findbugs errors with gradle. To verify if excludeFilter was being honored, I changed the contents to:

      <FindBugsFilter>
      <Match>
      <Package name="~.*"/>
      </Match>

      The above should match ALL packages and effectively exclude everything from Findbugs. Even with the above filter, I get the exact same results as before which leads me to believe that excludeFilter is not really being honored.

      ------------------------------------------------------------
      Gradle 1.2-rc-1
      ------------------------------------------------------------

      Gradle build time: Tuesday, September 4, 2012 5:49:54 PM UTC
      Groovy: 1.8.6
      Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
      Ivy: 2.2.0
      JVM: 1.7.0_05 (Oracle Corporation 23.1-b03)
      OS: Mac OS X 10.8.1 x86_64

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            forums Gradle Forums
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: