Avoid generating command lines repeatedly

This commit is contained in:
Glavo
2021-10-30 21:41:35 +08:00
committed by Yuhui Huang
parent c4941a01d6
commit 6aef034880

View File

@@ -540,7 +540,7 @@ public class DefaultLauncher extends Launcher {
writer.write(options.getPreLaunchCommand()); writer.write(options.getPreLaunchCommand());
writer.newLine(); writer.newLine();
} }
writer.write(generateCommandLine(nativeFolder).toString()); writer.write(command);
writer.newLine(); writer.newLine();
if (StringUtils.isNotBlank(options.getPostExitCommand())) { if (StringUtils.isNotBlank(options.getPostExitCommand())) {
writer.write(options.getPostExitCommand()); writer.write(options.getPostExitCommand());