Skip to content

Commit

Permalink
local.properties skip loading if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
wojta committed Mar 12, 2018
1 parent 9704cbd commit d5b61a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk-e2e/sdk_tasks.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ apply plugin: 'org.ajoberstar.grgit'


Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
File localProperties = project.rootProject.file('local.properties')
if (localProperties.exists()) {
properties.load(localProperties.newDataInputStream())
} else {
println("local.properties not found, skipping loading")
}

task cloneAndroidSdk(group: 'sdks') {
doLast {
Expand Down

0 comments on commit d5b61a3

Please sign in to comment.