diff options
author | Brad Leege <bleege@gmail.com> | 2015-02-10 16:26:00 -0800 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-02-10 16:26:00 -0800 |
commit | 4f42183ad0837dd85cbfcb16143dc400ebeec3e2 (patch) | |
tree | 557d5daf0994072df12f1e2f005675302cce98f5 /android/java/MapboxGLAndroidSDKTestApp/build.gradle | |
parent | de5be734f1224208e97a8e6822dec97a2906a248 (diff) | |
download | qtlocation-mapboxgl-4f42183ad0837dd85cbfcb16143dc400ebeec3e2.tar.gz |
#826 - Using Gradle flavored environment variable access method
Diffstat (limited to 'android/java/MapboxGLAndroidSDKTestApp/build.gradle')
-rw-r--r-- | android/java/MapboxGLAndroidSDKTestApp/build.gradle | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/java/MapboxGLAndroidSDKTestApp/build.gradle b/android/java/MapboxGLAndroidSDKTestApp/build.gradle index c34cd9e565..46c3a8d632 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/build.gradle +++ b/android/java/MapboxGLAndroidSDKTestApp/build.gradle @@ -13,11 +13,11 @@ apply plugin: 'com.android.application' apply plugin: 'checkstyle' task accessToken { - def rawDir = new File("src/main/res/raw") + def rawDir = new File("MapboxGLAndroidSDKTestApp/src/main/res/raw") rawDir.mkdirs() - def tokenFile = new File("src/main/res/raw/token.txt") + def tokenFile = new File("MapboxGLAndroidSDKTestApp/src/main/res/raw/token.txt") if (!tokenFile.exists()) { - String token = System.getenv('MAPBOX_ACCESS_TOKEN') + String token = "$System.env.MAPBOX_ACCESS_TOKEN" if (token == null) { throw new InvalidUserDataException("You must set the MAPBOX_ACCESS_TOKEN environment variable.") } |