[GRADLE-890] Confusing message when throwing exception within taskGraph.whenReady closure. Created: 06/Apr/10 Updated: 04/Jan/13 Resolved: 31/Mar/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 1.0-milestone-2 |
Type: | Improvement | ||
Reporter: | Hans Dockter | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 0 |
Description |
gradle.taskGraph.whenReady { graph -> if (graph.hasTask(':release') && !project.hasProperty('pow')) { throw new GradleException('No prop!') } } task hello << { println 'hello' } task release << { println 'release' } Calling gradle release yields: $ gradle release FAILURE: Build failed with an exception. * Where: Build file '/home/hd/IdeaProjects/gradle/tester/build.gradle' line: 3 * What went wrong: Failed to notify task execution graph listener. Cause: No prop! * Try: Run with -s or -d option to get more details. Run with -S option to get the full (very verbose) stacktrace. BUILD FAILED Total time: 1.118 secs The phrase Failed to notify task execution graph listener. is confusing. |