[GRADLE-2167] FindBugs plugin runs into command line length limit on Windows Created: 13/Mar/12 Updated: 04/Jan/13 Resolved: 02/Apr/12
|Reporter:||Gradle Forums||Assignee:||René Gröschke (Inactive)|
Similar to the mailing list thread at http://gradle.1045684.n5.nabble.com/G... – I'm unable to run the findbugs task on my code due to this error in JDK 1.7:
[ant:findbugs] java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_02\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
Or, with JDK 1.6:
[ant:findbugs] java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect
I'm using this version of gradle:
Gradle build time: Monday, February 13, 2012 11:53:32 PM UTC
When I run gradle with --debug, I can extract the command it runs when it tries to start FindBugs in a new JVM. I've abbreviated it in two places below:
14:32:46.933 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe' with arguments:
It seems likely that this command line is simply too long for Windows to handle.
|Comment by Szczepan Faber [ 14/Mar/12 ]|
Thanks for the report. Definitely a bug we need to fix.
|Comment by Dan Stine [ 02/Apr/12 ]|
This issue was marked as fixed earlier today. Is the Fix Version known yet? Thanks.
|Comment by René Gröschke (Inactive) [ 02/Apr/12 ]|
This fix will be part of the next release (1.0-rc1) that will hopefully be available within the next two weeks. We're currently working on a snapshot of this rc1 available to be tested in the field within the next days.