private static GeneralCommandLine createCommandLine(@NotNull JstdServerSettings settings) {
GeneralCommandLine commandLine = new GeneralCommandLine();
commandLine.setExePath(System.getProperty("java.home") + File.separator + "bin" + File.separator + "java");
Charset charset = Charsets.UTF_8;
commandLine.setCharset(charset);
commandLine.addParameter("-Dfile.encoding=" + charset.name());
//commandLine.addParameter("-Xdebug");
//commandLine.addParameter("-Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=y");
File file = new File(PathUtil.getJarPathForClass(JsTestDriverServer.class));
commandLine.setWorkDirectory(file.getParentFile());