You can use project properties (-P) and/or task rules (http://gradle.org/current/docs/userguide/userguide_single.html#N10DA8). In theory you could also fiddle with gradle.startParameter.taskNames, but I'd only do this as a last resort.
-- Peter Niederwieser Principal Engineer, Gradleware http://gradleware.com Creator, Spock Framework http://spockframework.org Twitter: @pniederw Philippe Lhoste wrote: > > On 20/08/2011 16:36, Philippe Lhoste wrote: >> Am I stuck to pass the parameters using -P too, or is there some smart >> way to specify them on the command line of Gradle? > > Tried -Pr="t v" > But as I feared, it is then seen as a unique parameter. > I suppose I can write some Groovy (supposing I am able to do that...) to > split the string, while handling parameters with spaces in them, but > this is getting clumsy... > > -- > Philippe Lhoste > -- (near) Paris -- France > -- http://Phi.Lho.free.fr > -- -- -- -- -- -- -- -- -- -- -- -- -- -- > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > -- View this message in context: http://gradle.1045684.n5.nabble.com/How-to-give-command-line-parameters-to-JavaExec-tp4718761p4718791.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
