diff --git a/rakelib/compile.rake b/rakelib/compile.rake index 2a538a1e10c..009c293657b 100644 --- a/rakelib/compile.rake +++ b/rakelib/compile.rake @@ -31,7 +31,8 @@ namespace "compile" do task "logstash-core-java" do puts("Building logstash-core using gradle") - sh("./gradlew assemble") + # this expansion is necessary to use the path separators of the hosting OS + sh(File.join(".", "gradlew"), "assemble") end desc "Build everything"