Browse Source

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
Ryan Ernst 8 years ago
parent
commit
5a414cbe5c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      distribution/bwc-zip/build.gradle

+ 2 - 2
distribution/bwc-zip/build.gradle

@@ -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]
 }