提交 f328ae29 编写于 作者: Z zhourui

fix

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