fix build to not require AWS credentials

Original commit: elastic/x-pack-elasticsearch@74c7fb5c0f
This commit is contained in:
Colin Goodheart-Smithe 2016-12-01 16:18:29 +00:00
parent 14208f12d1
commit 19c1424984
1 changed files with 7 additions and 1 deletions

View File

@ -9,8 +9,14 @@ import java.nio.file.Files
import java.nio.file.Paths
import java.nio.file.StandardCopyOption
project.ext.awsAccessKey = AWS_ACCESS_KEY
if (project.hasProperty("AWS_ACCESS_KEY")) {
project.ext.awsAccessKey = AWS_ACCESS_KEY
}
if (project.hasProperty("AWS_SECRET_KEY")) {
project.ext.awsSecretKey = AWS_SECRET_KEY
}
boolean isWindows = OperatingSystem.current().isWindows()
boolean isLinux = OperatingSystem.current().isLinux()