提交 a0aec3a6 编写于 作者: O o2null

Merge branch 'feature/java11' into 'develop'

fix

See merge request o2oa/o2oa!1520
...@@ -82,7 +82,7 @@ public class Main { ...@@ -82,7 +82,7 @@ public class Main {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
}); }, "swapCommandThread");
private static final Thread consoleCommandThread = new Thread(() -> { private static final Thread consoleCommandThread = new Thread(() -> {
// 将屏幕命令输出到解析器 // 将屏幕命令输出到解析器
...@@ -100,7 +100,7 @@ public class Main { ...@@ -100,7 +100,7 @@ public class Main {
} catch (Exception e) { } catch (Exception e) {
System.out.println("console input closed!"); System.out.println("console input closed!");
} }
}); }, "consoleCommandThread");
private static void init() throws Exception { private static void init() throws Exception {
String base = getBasePath(); String base = getBasePath();
......
...@@ -323,6 +323,9 @@ public class ApplicationServerTools extends JettySeverTools { ...@@ -323,6 +323,9 @@ public class ApplicationServerTools extends JettySeverTools {
PathUtils.cleanDirectory(dir); PathUtils.cleanDirectory(dir);
} }
JarTools.unjar(war, "", dir, true); JarTools.unjar(war, "", dir, true);
if (!Files.exists(lastModified)) {
Files.createFile(Files.createDirectories(lastModified));
}
FileUtils.writeStringToFile(lastModified.toFile(), Files.getLastModifiedTime(lastModified).toMillis() + "", FileUtils.writeStringToFile(lastModified.toFile(), Files.getLastModifiedTime(lastModified).toMillis() + "",
DefaultCharset.charset_utf_8, false); DefaultCharset.charset_utf_8, false);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册