Revert "Use System.lineSeparator()"

This reverts commit 70b09a9ad0.
This commit is contained in:
dima_dencep 2023-07-02 14:20:53 +07:00
parent 70b09a9ad0
commit fc0de10b59
No known key found for this signature in database
GPG key ID: ED87FE0D1750A12D

View file

@ -122,15 +122,12 @@ public void invoke(String... args) throws Exception {
try (Writer writer = IOHelper.newWriter(startScript)) {
if (JVMHelper.OS_TYPE == JVMHelper.OS.LINUX) {
writer.append("#!/bin/bash");
writer.append(System.lineSeparator());
writer.append(System.lineSeparator());
writer.append("#!/bin/bash\n\n");
}
writer.append(System.lineSeparator());
writer.append("\"");
writer.append(IOHelper.resolveJavaBin(Paths.get(System.getProperty("java.home")), true).toAbsolutePath().toString());
writer.append(System.lineSeparator());
writer.append(" ");
writer.append("\" ");
if (agentClassName != null) {
writer.append("-javaagent:ServerWrapper.jar ");
@ -149,7 +146,7 @@ public void invoke(String... args) throws Exception {
writer.append(" ");
writer.append(ServerWrapper.class.getName());
writer.append(System.lineSeparator());
writer.append("\n");
}
if (JVMHelper.OS_TYPE != JVMHelper.OS.MUSTDIE) {