You could also use properties (-P). If you write -Pmodule=common then the
"module" property will be available in your build script as a groovy
variable. You can also access it with property getters on the project. And
check for existence by using project.hasProperty('module').

2011/3/22 phil swenson <[email protected]>

> If I want to pass in params to a gradle task, is my only option using
> -Dname=value?
>
> It's quite ugly:  gradle createModule –Dmodule=<moduleName>
> -Dplugin=<pluginName>
>
> Just curious
>
>
>

Reply via email to