Фиксы враппера

This commit is contained in:
Gravit 2018-10-24 20:40:51 +07:00
parent e5478930b4
commit 5155bf292a
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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()) {