On 28/02/2011 14:04, Peter Niederwieser wrote:
One way is to set a dynamic project property (gradle -Pmyprop=myvalue build)
and configure the task with it:
someTask {
someSetting = myprop // may have to convert from String to someSettting's
type
}
And you can define a default value if the property isn't set:
someSetting = hasProperty('myprop') ? myprop : 'HelloWorld'
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email