Jason Porter wrote:
It looks like the gradle.properties in USERHOME/.gradle is it, but how
does this work if you have multiple projects being built with Gradle?
Is there a special prefix for the keys to assign it to a particular
project?
You can put a gradle.properties file in the project directory of a
project. These properties are applied to the project, and inherited by
all its sub-projects.
Also, you can use code to do this if the build-in stuff doesn't work.
For example:
Properties props = new Properties()
file('my-properties.properties').withInputStream { props.load(it) }
props.each { String name, value -> project.setProperty(name, value) }
I did see
http://gradle.org/latest/docs/userguide/tutorial_this_and_that.html#sec:gradle_properties_and_system_properties
but I'm a little confused by the syntax of
ORG_GRADLE_PROJECT_yourProperty=somevalue (which I guess is only good
for environment variables?). Is it <ORG_GRADLE_PROJECT>_property or
ORG_GRADLE_<PROJECT>_property, where you replace what's in the angled
brackets?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email