Peter, Thanks for your response. That makes sense.
- Darren -----Original Message----- From: Peter Niederwieser [mailto:[email protected]] Sent: Saturday, January 15, 2011 12:22 AM To: [email protected] Subject: [gradle-user] Re: Accessing a closure from within the buildscript configuration The buildscript section is, by definition, evaluated before the rest of the script, so it is normal that you can't access a variable defined in the rest of the script from within this section. If you need to access a variable from both worlds, you could define it in one of these places: - the buildscript section (probably the easiest solution) - a class in the buildSrc folder - gradle.properties (not a good fit in your case) Cheers, Peter -- View this message in context: http://gradle.1045684.n5.nabble.com/Accessing-a-closure-from-within-the-buildscript-configuration-tp3341695p3342369.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 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
