[GRADLE-1743] Provide a way to view Java stubs generated by groovyc joint compilation Created: 11/Aug/11 Updated: 04/Jan/13 Resolved: 08/May/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 1.1-rc-1 |
Type: | New Feature | ||
Reporter: | Peter Niederwieser | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Description |
For troubleshooting it's important to be able to view the generated stub code. However, the Groovyc Ant task that we use underneath doesn't seem to support passing any of the keepStubs and stubDir options to the Groovy compiler, which makes it difficult to view the generated code. The best workaround that I found so far is to set groovyCompile.groovyOptions.fork to false, add a sleep task to the Gradle build, and then view the stub files (which are deleted when the JVM exits unless keepStubs is set). |
Comments |
Comment by Adam Murdoch [ 19/Apr/12 ] |
This is fixed in 1.0-rc-1, I think. Can we resolve this issue now? |
Comment by Murali Rath [ 22/Apr/12 ] |
I am still not able to get this working. Can you please document how to get this working? |
Comment by Peter Niederwieser [ 22/Apr/12 ] |
How did you try to get it working? Did you set `compileGroovy.groovyOptions.forkOptions.keepStubs = true` and `compileGroovy.groovyOptions.forkOptions.stubDir = file("some/dir")`? This kind of stuff is documented in the DSL guide and/or Javadoc/Groovydoc. I've added some comments there. |