Pre Merge pull request !7 from xiaoye/master

This commit is contained in:
xiaoye 2025-10-31 07:45:28 +00:00 committed by Gitee
commit 2d99d9b19d
No known key found for this signature in database
GPG key ID: 173E9B9CA92EEF8F

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;