Matthias Bohlen-3 wrote:
>
> how do I pass a commandline argument to a task?
>
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
}
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Passing-command-line-args-tp3403220p3403244.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