Skip to content

Commit 64b54e8

Browse files
Fix: classpath is not generated into argfile when using shortCommanLine=argfile (microsoft#384)
1 parent 3f50bfc commit 64b54e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler

com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/LaunchUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ public static synchronized Path generateClasspathJar(String[] classPaths) throws
7373
public static synchronized Path generateArgfile(String[] classPaths, String[] modulePaths) throws IOException {
7474
String argfile = "";
7575
if (ArrayUtils.isNotEmpty(classPaths)) {
76-
argfile = "-classpath \"" + String.join(File.pathSeparator, classPaths) + "\"";
76+
argfile = "-cp \"" + String.join(File.pathSeparator, classPaths) + "\"";
7777
}
7878

7979
if (ArrayUtils.isNotEmpty(modulePaths)) {
80-
argfile = " --module-path \"" + String.join(File.pathSeparator, modulePaths) + "\"";
80+
argfile += " --module-path \"" + String.join(File.pathSeparator, modulePaths) + "\"";
8181
}
8282

8383
argfile = argfile.replace("\\", "\\\\");

0 commit comments

Comments
 (0)