Details
-
Type:
Bug
-
Status:
Resolved
-
Resolution: Fixed
-
Affects Version/s: 1.0-milestone-1
-
Fix Version/s: 1.0-rc-1
Description
We hit the same issue documented here:
http://gradle.1045684.n5.nabble.com/Groovyc-fork-failing-on-Windows-td3357060.html
When gradle tries to compile (in our case) a mixed groovy/java environment on a Windows machine it returns an exception:
java.io.IOException: Cannot run program "c:\PROGRA~1\Java\jdk1.6.0_10
\jre\bin\java": CreateProcess error=87, The parameter is incorrect"
This is due to the command exceeding the size limit on command-line arguments in Windows. The build works fine in Linux.
Peter suggests turning off forking on the above thread as a workaround:
[compileGroovy, compileTestGroovy]*.groovyOptions.fork = false
The process indeed does not fork with that line, but it just hangs (even with GRADLE_OPTS set to 1G).
Issue Links
- Trackbacks
-
[ARCH-138] Build fails on fresh checkout on windows machines
Reproduction Steps
==================
- checkout new branch
- run gradlew
Symptoms
========
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':scriptexporter:compileTestGroovy'.
Cause: Error runni...
-
[ARCH-313] Gradle :webservice:compileJava task fails on Windows because classpath is too long
Related Gradle issue: http://issues.gradle.org/browse/GRADLE-1420
Gradle currently puts too much on the compile class path. Once that is fixed, the "too long class path" problem will probably go away automatically.