Передача launcher.debug

This commit is contained in:
Gravit 2018-10-22 18:47:26 +07:00
parent 300e8cfcec
commit ec3a1d9bb0
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -29,6 +29,7 @@ public static void main(String[] arguments) throws IOException, InterruptedExcep
String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString();
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);
processBuilder.command(args);
Process process = processBuilder.start();