[GRADLE-296] Discuss: Should a closure task action delegate first to its task object. Created: 02/Nov/08  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9-rc-1

Type: Improvement
Reporter: Hans Dockter Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Comments   
Comment by Jon Cox [ 23/Jan/09 ]

Could you describe the pros & cons of this, as you see them?

Comment by Adam Murdoch [ 03/Mar/09 ]

The solution should deal with:

  • A task action injected from another project:
    project('child').someTask.doFirst {
        println $project.path
    }
    
  • A task action reused for tasks in multiple projects:
    subprojects {
       someTask.doFirst {
          println $project.path
       }
    }
    
Generated at Wed Jun 30 11:26:33 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.