[GRADLE-1555] Programatic task depedencies not obeyed in tooling API Created: 16/May/11 Updated: 04/Jan/13 Resolved: 20/May/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-3 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Kris De Volder | Assignee: | Unassigned |
Resolution: | Not A Bug | Votes: | 0 |
Description |
Reproducible from STS Gradle plugin. Create a Gradle project with just a single build.gradle file in it and nothing else. 4.times { counter -> task "task$counter" << { println "I'm task number $counter" } } task0.dependsOn task2, task3 Do "Run As >> Gradle Build ..." on the build.gradle file. Output: Note: the Gradle build daemon is an experimental feature. As such, you may experience unexpected build failures. You may need to occasionally stop the daemon. :task1 I'm task number 1 BUILD SUCCESSFUL Only :task1 was executed. Why not :task2 and :task3? |
Comments |
Comment by Kris De Volder [ 16/May/11 ] |
Ok... so I just tried on the commandline and get the same result there. So it isn't a problem with tooling API perse. Still it looks like the behavior is inconsistent with the docs. So I guess either the docs are wrong or this is a bug. |
Comment by Andrew Thorburn [ 17/May/11 ] |
Just a thought: You're making task0 depend on 2 & 3, not task1. Given that you are then trying to run task1, it's not all that surprising that 2 & 3 aren't executed - task1 doesn't depend on them, or any other tasks, as far as I can tell. |
Comment by Kris De Volder [ 17/May/11 ] |
Oops! I guess you can close this bug... "User Error" |