On 15/08/10 1:59 AM, phil swenson wrote:
1) where do you put user specific properties for your build (like where resource X is)... gradle.properties in same dir a your build.gradle? or somewhere else? ~/gradle.properties? I'm talking about a file that you would not check in.
Gradle looks for a properties file at ~/.gradle/gradle.properties
2) where do you put shared properties that you would check in? gradle.settings?
Gradle looks for a properties file at $projectDir/gradle.properties, so you could use that.
Of course, given that the build file is Groovy, you can code up whatever solution you like, using Properties.load(). Depending on what you need, using ConfigSlurper can be a good alternative to properties files.
There's some more details about properties in the user guide: http://gradle.org/0.9-rc-1/docs/userguide/tutorial_this_and_that.html#sec:gradle_properties_and_system_properties
-- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
