[GRADLE-324] Gradle should show groovyc output even when groovyc is forked Created: 17/Dec/08 Updated: 04/Jan/13 Resolved: 31/Aug/09 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 0.5, 0.6 |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Peter Niederwieser | Assignee: | Hans Dockter |
| Resolution: | Fixed | Votes: | 0 |
| Description |
|
Since 0.5, Gradle by default forks groovyc. However, if compilation fails, the only output is "forked groovyc returned error code: 1". Instead, the groovyc output should be shown. |
| Comments |
| Comment by Hans Dockter [ 18/Dec/08 ] |
|
I can't reproduce this problem. I did the following to set up a test for this. I went to the GRADLE_HOME/samples/groovyproject. I have introduced an illegal syntax int the file: testproject/src/main/groovy/org/gradle/GroovyPerson.groovy. Then I have triggered a compile and got the following output: :testproject:compile
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /Users/hans/java/gradle-SNAPSHOT/samples/groovyproject/testproject/src/main/groovy/org/gradle/GroovyPerson.groovy: 22: unexpected token: a @ line 22, column 5.
a
^
1 error
Build failed with an exception.
Run with -s or -d option to get more details. Run with -f option to get the full (very verbose) stacktrace.
Build file '/Users/hans/java/gradle-SNAPSHOT/samples/groovyproject/testproject/build.gradle'
Execution failed for task :testproject:compile.
Cause: Forked groovyc returned error code: 1
I get a similar output from the joint compile for an illegal syntax in a Java class. |
| Comment by Hans Dockter [ 07/Jan/09 ] |
|
Could you try to run gradle with the -i option. Do you get more output then? |
| Comment by Hans Dockter [ 31/Aug/09 ] |
|
Hi Peter, can you reproduce this problem with Gradle 0.7? |
| Comment by Peter Niederwieser [ 31/Aug/09 ] |
|
No, seems to work now. |
| Comment by Hans Dockter [ 31/Aug/09 ] |
|
Cool. Thanks for the feedback. |
| Comment by Hans Dockter [ 31/Aug/09 ] |
|
This has been already fixed with 0.7. |