Skip to content

Commit

Permalink
Fix java -cp args not handling properly in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Thushara-Piyasekara committed Mar 31, 2024
1 parent a938b41 commit f6ca592
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ public static ExitDetails run(CompileResult compileResult, List<String> javaOpts
String classPathString = System.getProperty("java.class.path") + classPath;
// Create an argument file for Windows to mitigate the long classpath issue.
if (IS_WINDOWS) {
classPathString = classPathString.replace(" ", "%20");
String classPathArgs = "classPathArgs";
try {
File classPathArgsFile = File.createTempFile(classPathArgs, ".txt");
Expand Down

0 comments on commit f6ca592

Please sign in to comment.