Build: Use filesystem agnostic printing of bwc dir path (#23803)

This will use File.toString() for the `git clone` command, which will
automatically be correct for whatever system the build is running on.

closes #23784
This commit is contained in:
Ryan Ernst 2017-03-29 13:13:09 -07:00 committed by GitHub
parent cc1addeac2
commit 5a414cbe5c
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ import org.elasticsearch.gradle.LoggedExec
apply plugin: 'distribution'
String checkoutDir = "${buildDir}/bwc/checkout-5.x"
File checkoutDir = file("${buildDir}/bwc/checkout-5.x")
task createClone(type: LoggedExec) {
onlyIf { new File(checkoutDir).exists() == false }
onlyIf { checkoutDir.exists() == false }
commandLine = ['git', 'clone', rootDir, checkoutDir]
}