[GRADLE-2120] ConfigureUtil.configureByMap does not work correctly with decorated objects (does not call methods with the given name) Created: 22/Feb/12 Updated: 04/Jan/13 Resolved: 22/Feb/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-8a |
Fix Version/s: | 1.0-milestone-9 |
Type: | Bug | ||
Reporter: | Luke Daley | Assignee: | Luke Daley |
Resolution: | Fixed | Votes: | 0 |
Issue Links: |
|
Description |
class SomeTask extends DefaultTask { def value def method(value) { this.value = value } } def task = project.task("test", type: SomeTask) ConfigureUtil.configureByMap(task, method: "foo") assert task.value == "foo" // fails assert task.method == "foo" // passes If the target object is decorated, a dynamic object will be created instead of the method being called. |