On 07/02/2011 23:11, Jason Porter wrote:
You could also have a set of properties files and load up the
appropriate one based on the "profile" if you start having a lot of
things that need to be changed.
About this: I wanted to load a secondary properties file (coming from the current build
tree) and I failed to find how to do this in the Gradle doc, in Gradle Goodness and some
other sources.
I finally found out (probably in this list) that I have to use Groovy (?) for that with
something like:
Properties props = new Properties()
props.load(new FileInputStream("$kernelRoot/ant-win.properties"))
// Can do other loads, apparently
project.setProperty('props', props)
I suggest to put this useful information somewhere in the official docs.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email