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 3233b59 commit 144e8a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public JarHellTask() {
@TaskAction
public void runJarHellCheck() {
LoggedExec.javaexec(getProject(), spec -> {
spec.classpath(getClasspath());
spec.environment("CLASSPATH", getClasspath().getAsPath());
spec.setMain("org.elasticsearch.bootstrap.JarHell");
});
}
Expand Down

0 comments on commit 144e8a0

Please sign in to comment.