Hi Richard,
for user specific properties, you can use the gradle.properties file in your user related gradle directory. On my mac this would be ~/.gradle/gradle.properties. All properties defined in this file overwrite according values defined in a project specific gradle.properties file. IMHO this is the most convenient way to provide user specific properties for your build scripts.

regards,
René

Am 17.10.11 21:54, schrieb Richard Miehe:

I have been passing in several settings using on my gradle command line using --D. Many of the settings are always the same for a particular machine or user. It seems like init.gradle is the perfect spot to put this type of thing.

I have not found any way of defining variables in an init script, then accessing them from a build.gradle script. Am I missing something obvious?

Any examples would be appreciated.

Richard Miehe

Software Dev in Test

OnAir

www.onair.aero <http://www.onair.aero>

OnAir. Stay connected.


------------------------------------------------------------------------
Disclaimer: This e-mail (and any attachments to it) is confidential and intended solely for the named person/s to whom it is addressed. If you are not an intended recipient, please notify us immediately and delete the email from your system. Any review, dissemination or other use of it in these circumstances is prohibited.


--
-----------------------
regards,
René

rene groeschke
http://www.breskeby.com
@breskeby

Reply via email to