Created
January 10, 2014 16:13
-
-
Save mdellavo/8357196 to your computer and use it in GitHub Desktop.
access sdk.dir in gradle
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 getSdkDir() { | |
Properties local = new Properties() | |
local.load(new FileInputStream("${rootDir}/local.properties")) | |
return local.getProperty('sdk.dir') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment