From fc1c66083b2f68b6e8a8bbdd540a314855cfe102 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 3 Nov 2015 23:02:29 -0800 Subject: [PATCH] Fix integ test exec on windows --- .../org/elasticsearch/gradle/test/ClusterFormationTasks.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy index 242b463807a..20dd19d556e 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy @@ -140,7 +140,7 @@ class ClusterFormationTasks { start = project.tasks.create(name: "${task.name}#start", type: DefaultTask, dependsOn: setup) << { // Fall back to Ant exec task as Gradle Exec task does not support spawning yet ant.exec(executable: 'cmd', spawn: true, dir: home) { - esEnv.each { env(key: key, value: value) } + esEnv.each { key, value -> env(key: key, value: value) } (['/C', 'call', 'bin/elasticsearch'] + esArgs).each { arg(value: it) } } esPostStartActions(ant, logger)