[GRADLE-2902] Possible stack overflow during file copy in Gradle 1.8 Created: 29/Sep/13 Updated: 08/Oct/13 Resolved: 08/Oct/13 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | None |
| Fix Version/s: | 1.9-rc-1 |
| Type: | Bug | ||
| Reporter: | Gradle Forums | Assignee: | Luke Daley |
| Resolution: | Fixed | Votes: | 0 |
| Known Issue Of: |
| Description |
|
I have a task includes the following action project.copy { CopySpec cs -> and which now produces a stackoverflow in this code at org.gradle.api.internal.file.CompositeFileCollection$1.resolve(CompositeFileCollection.java:88) This worked in gradle 1.0-1.6 Any idea what is going wrong or how to debug this? |
| Comments |
| Comment by Gradle Forums [ 29/Sep/13 ] |
|
I'm not able to reproduce this. Can you post a minimal self-contained example that allows to reproduce the issue? |
| Comment by Gradle Forums [ 29/Sep/13 ] |
|
It looks like it is related to use of GString, put the following in a build.gradle and run it using gradle 1.8 task doIt { result = stackoverflow If you pass source.toString() and dest.toString() instead and it works fine. |
| Comment by Gradle Forums [ 29/Sep/13 ] |
|
`"a"` and `"b"` aren't GStrings (they don't contain a `$`). |