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:
parent
cc1addeac2
commit
5a414cbe5c
|
@ -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]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue