[GRADLE-2774] Task.actions allows insertion of Action instances, but internal protocol ContextAwareTaskAction is actually required Created: 10/May/13  Updated: 26/Sep/13  Resolved: 26/Sep/13

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

Type: Bug
Reporter: Gradle Forums Assignee: René Gröschke (Inactive)
Resolution: Fixed Votes: 0


AbstractTask.wrap() is internally decorating actions added via less direct methods (doFirst() etc.).

We could:

1. Not require all task actions to be of this type in our infrastructure
2. Decorate tasks.actions so that it does the decoration on direct access
3. Deprecate mutation of task.actions

I think #2 is probably the best course. I don't think we can do #3 as people rely on this feature.

Comment by Robert Kühne [ 17/Aug/13 ]

This bug affects gradle 1.6 and 1.7

Generated at Wed Jun 30 12:31:08 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.