I'm looking to set a custom property on my resources task to one of a number
of values, and was thinking of doing something like the following:
createTask('foo') {
resources.myProperty = "foo"
}
I'd then read this value when the build gets to the resources task:
resources.doFirst() {
System.out.println("My property is: " + resources.myProperty);
}
I figured that I could do 'gradle foo resources', and have the value of this
property set to 'foo' by the time I get to the resources task. However, all
I get is this error:
Cause: Property 'myProperty' not found for task :koios-tests:resources.
What am I doing wrong? Is there a way to achieve what I'm after?
--
View this message in context:
http://www.nabble.com/Why-does-this-not-work--tp21925487p21925487.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