The FindBugs Gradle plugin fails when analyzing a Java project that contains enough .java and .class files to push the resulting command over the 8191-character limit (http://support.microsoft.com/kb/830473/)
13:06:31.291 [ERROR] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:findbugs] java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_30\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
One partial workaround for this would be to configure the ant task to point to a JAR instead of a collection of .classes, although there's still the issue of the huge list of source files. In either case, the findbugs plugin exposes no way of doing this.
|