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é
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


Reply via email to