mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Фиксы враппера
This commit is contained in:
parent
e5478930b4
commit
5155bf292a
1 changed files with 2 additions and 1 deletions
|
@ -27,10 +27,11 @@ public static void main(String[] arguments) throws IOException, InterruptedExcep
|
|||
List<String> args = new LinkedList<>();
|
||||
args.add(javaBin.toString());
|
||||
String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString();
|
||||
args.add(JVMHelper.jvmProperty(LogHelper.DEBUG_PROPERTY, Boolean.toString(LogHelper.isDebugEnabled())));
|
||||
Collections.addAll(args, "-javaagent:".concat(pathLauncher));
|
||||
Collections.addAll(args, LauncherEngine.class.getName());
|
||||
args.add(JVMHelper.jvmProperty(LogHelper.DEBUG_PROPERTY, Boolean.toString(LogHelper.isDebugEnabled())));
|
||||
EnvHelper.addEnv(processBuilder);
|
||||
LogHelper.debug("Commandline: " + args);
|
||||
processBuilder.command(args);
|
||||
Process process = processBuilder.start();
|
||||
if(!LogHelper.isDebugEnabled()) {
|
||||
|
|
Loading…
Reference in a new issue