Created
July 30, 2015 17:32
-
-
Save diegopacheco/bab9e8169848fd85c1b0 to your computer and use it in GitHub Desktop.
How to get Parameters/Arguments in Gradle Command line / Console?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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