|
@@ -100,18 +100,35 @@ public class Main {
|
|
|
}, "consoleCommandThread");
|
|
}, "consoleCommandThread");
|
|
|
|
|
|
|
|
private static void init() throws Exception {
|
|
private static void init() throws Exception {
|
|
|
|
|
+ System.out.println("=================getBasePath=================");
|
|
|
String base = getBasePath();
|
|
String base = getBasePath();
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================pid=================");
|
|
|
pid(base);
|
|
pid(base);
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================scanWar=================");
|
|
|
scanWar(base);
|
|
scanWar(base);
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================cleanTempDir=================");
|
|
|
cleanTempDir(base);
|
|
cleanTempDir(base);
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================createTempClassesDirectory=================");
|
|
|
createTempClassesDirectory(base);
|
|
createTempClassesDirectory(base);
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================SystemOutErrorSideCopyBuilder=================");
|
|
|
SystemOutErrorSideCopyBuilder.start();
|
|
SystemOutErrorSideCopyBuilder.start();
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================LogTools=================");
|
|
|
LogTools.setSlf4jSimple();
|
|
LogTools.setSlf4jSimple();
|
|
|
|
|
+
|
|
|
|
|
+ System.out.println("=================ResourceFactory=================");
|
|
|
ResourceFactory.bind();
|
|
ResourceFactory.bind();
|
|
|
|
|
+
|
|
|
CommandFactory.printStartHelp();
|
|
CommandFactory.printStartHelp();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
|
+ System.out.println("=================系统启动=================");
|
|
|
init();
|
|
init();
|
|
|
if (null == Config.currentNode()) {
|
|
if (null == Config.currentNode()) {
|
|
|
throw new Exception("无法找到当前节点,请检查config/node_{name}.json与local/node.cfg文件内容中的名称是否一致.");
|
|
throw new Exception("无法找到当前节点,请检查config/node_{name}.json与local/node.cfg文件内容中的名称是否一致.");
|