Skip to content

Commit

Permalink
Use an env var for the classpath of jar hell task (#48240)
Browse files Browse the repository at this point in the history
The classpath for some project could outgrow the max allowed command
line on Windows. Using an env var is not fault proof, but give more
breathing room
  • Loading branch information
alpar-t committed Oct 22, 2019
1 parent 46eb30b commit 399ce4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public JarHellTask() {
@TaskAction
public void runJarHellCheck() {
LoggedExec.javaexec(getProject(), spec -> {
spec.classpath(getClasspath());
spec.environment("CLASSPATH", getClasspath().getAsPath());
spec.executable(getJavaHome() + "/bin/java");
spec.setMain("org.elasticsearch.bootstrap.JarHell");
});
Expand Down

0 comments on commit 399ce4e

Please sign in to comment.