Pre Merge pull request !7 from xiaoye/master

This commit is contained in:
xiaoye 2024-04-10 14:40:37 +00:00 committed by Gitee
commit 0dc9807616
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ public class Launcher {
}
String jarPath = jarURI.getPath();
String os = System.getProperty("os.name").toLowerCase();
if (os.contains("win")) {
jarPath = jarPath.substring(1).replace("/", "\\");
}
if (args.length > 1 && args[0].equals(ATTACH_ARG)) {
VMLauncher.attachVM(jarPath, args[1], args.length > 2 ? args[2] : null);
return;