[GRADLE-1283] Running a built-from-source gradle fails with Unexpected Gradle version Created: 04/Jan/11 Updated: 04/Jan/13 Resolved: 04/Jan/11 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 0.9.1 |
| Fix Version/s: | 0.9.2 |
| Type: | Bug | ||
| Reporter: | John Gibson | Assignee: | Hans Dockter |
| Resolution: | Fixed | Votes: | 0 |
| Description |
|
If you build Gradle from source and try to run it against a project then you can get the following error: FAILURE: Build failed with an exception.
I've tracked this down to GradleVersion.java. A recently added version regex always assumes that the divider between the time and the timezone is + (which doesn't happen if your machine is set to a timezone west of Greenwich). |
| Comments |
| Comment by John Gibson [ 04/Jan/11 ] |
|
I've written a fix, checked it into Github, and filed a pull request. https://github.com/gradle/gradle/pull/10 Note that I haven't tested it with a build in a timezone east of Greenwich (because I don't have any machines in that timezone). |
| Comment by Adam Murdoch [ 04/Jan/11 ] |
|
Applied. Thank you for the patch. |