From 2cbfc54a81824804500b6645c48c2970898340af Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 21 Dec 2015 15:23:28 -0800 Subject: [PATCH] avoid too-long classpath so it works on windows --- plugins/repository-hdfs/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/repository-hdfs/build.gradle b/plugins/repository-hdfs/build.gradle index bf27ecc22c1..eb3004af2ad 100644 --- a/plugins/repository-hdfs/build.gradle +++ b/plugins/repository-hdfs/build.gradle @@ -64,8 +64,8 @@ dependencyLicenses { task hdfsFixture(type: org.elasticsearch.gradle.test.Fixture) { dependsOn project.configurations.hdfsFixture executable = new File(project.javaHome, 'bin/java') - args '-cp', "${ -> project.configurations.hdfsFixture.asPath }", - 'hdfs.MiniHDFS', + env 'CLASSPATH', "${ -> project.configurations.hdfsFixture.asPath }" + args 'hdfs.MiniHDFS', baseDir }