On 24/08/2011, at 9:45 PM, Ricardo Mayerhofer wrote:
> Hi all,
> Is it possible to use a convention property inside apply method? I've tried
> the code bellow but it prints null:
>
> class GreetingPlugin implements Plugin<Project> {
> def void apply(Project project) {
>
> project.convention.plugins.greet = new GreetingPluginConvention()
> println "Convention property " +
> project.convention.plugins.greet.message
> }
> }
Conventions are like mixins, so instead of:
println "Convention property " + project.convention.plugins.greet.message
Try:
println "Convention property " + project.message
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email