Last active
February 15, 2016 14:02
-
-
Save zlwu/090692fbd0f7578f3112 to your computer and use it in GitHub Desktop.
read properties in gradle build
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
def ndkRoot = '/usr/local/android/ndk' | |
project.rootProject.file('gradle.properties').withReader { reader -> | |
def userProps = new Properties() | |
userProps.load(reader) | |
ndkRoot = properties.get('ndk.dir') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment