Hi there,
I have another question about convention mapping objects.
I have a task that has a custom class as model:

-------------
class ExampleTask implements ConventionTask{
    def ExampleModel model = new ExampleModel();
}

class ExampleModel {
    String title
}
-------------

now I would like to add a property called exampleTitle as a convention-property to my project.

In my ExamplePlugin I have the following line:
-------------
 siteTask.conventionMapping.model.title = { pluginConvention.exampleTitle }
-------------

when running my tests now, I get the following error:
> groovy.lang.MissingPropertyException: No such property: model for class: org.gradle.api.internal.ConventionAwareHelper


Anybody an idea how to wire the title attribute to the "exampleTitle" attribute of my pluginConvention? I'm not sure if this is a gradle question or just the result of my lacking groovy knowledge.

regards,
René

--
-----------------------
regards René

rene groeschke
http://www.breskeby.com                 
@breskeby


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to