Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created July 30, 2015 17:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegopacheco/bab9e8169848fd85c1b0 to your computer and use it in GitHub Desktop.
Save diegopacheco/bab9e8169848fd85c1b0 to your computer and use it in GitHub Desktop.
How to get Parameters/Arguments in Gradle Command line / Console?
[build.gradle]
if ( project.hasProperty("myARG") ) {
// do something
} else {
// do something else
}
[CONSOLE]
$ gradle -PmyARG=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment