Thanks René, That lets me pass arguments by hard coding them into my build.gradle but I was wanting to pass args from the gradle command line. For example something like:
gradle run arg1 arg2 ... Regards, Glen On 6 March 2012 19:09, Rene Groeschke <[email protected]> wrote: > Hello Glen, > The run task is of type JavaExec. As you can see in the DSL Documentation > of JavaExec ( > http://gradle.org/docs/current/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:args), > you can pass parameters to the task using "args": > > run{ > args '-i' > } > > regards, > René > > Glen Stampoultzis <[email protected]> > 6. März 2012 01:54 > One of the tasks the gradle application plugin creates is called 'run'. > This works great but how do I pass command line arguments to the > application it is running? Gradle seems to want to interpret anything I > pass on the command line. > > Regards, > > Glen > ------------------------------ > > >
<<postbox-contact.jpg>>
