Browse Source

Merge pull request #471 in DESIGN/design from ~JU/design:feature/10.0 to feature/10.0

* commit '8da56daee841b0c187999e3ac8cdbd4f6302973f':
  无JIRA任务  设计器端口占用的时候卡主
research/10.0
ju 6 years ago
parent
commit
21b738222f
  1. 7
      designer-realize/src/main/java/com/fr/start/Designer.java

7
designer-realize/src/main/java/com/fr/start/Designer.java

@ -39,6 +39,7 @@ import com.fr.design.utils.DesignUtils;
import com.fr.design.utils.concurrent.ThreadFactoryBuilder;
import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.general.ComparatorUtils;
import com.fr.log.FineLoggerFactory;
import com.fr.module.Module;
import com.fr.module.ModuleContext;
import com.fr.runtime.FineRuntime;
@ -98,14 +99,16 @@ public class Designer extends BaseDesigner {
//启动运行时
FineRuntime.start();
BuildContext.setBuildFilePath("/com/fr/stable/build.properties");
// 如果端口被占用了 说明程序已经运行了一次,也就是说,已经建立一个监听服务器,现在只要给服务器发送命令就好了
if (DesignUtils.isStarted()) {
DesignUtils.clientSend(args);
FineLoggerFactory.getLogger().error("Designer port not available.");
System.exit(0);
return;
}
preloadResource();
SplashContext.getInstance().registerSplash(createSplash());

Loading…
Cancel
Save