The point is I'd like to be able to read convention properties in apply
method, currently it prints null, which means it wasn't set. Perhaps I'm not
thinking the gradle way.
I need to configure some tasks in plugin that receive input from convention
properties, e.g.:
...
def void apply(Project project) {
project.convention.plugins.deploy = new DeployPluginConvention()
println "Configuring deploy for
${project.convention.plugins.deploy.applicationName}"
def deploy = project.getTasks().add( "deploy", DeployTask.class )
deploy.earPath = project.convention.plugins.deploy.applicationName +
".ear"
}
What is the best way to achieve this?
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Use-plugin-convention-property-in-apply-method-tp4731829p4735574.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email