Browse Source

Pull request #5530: REPORT-56047 修改下判断是否为安装版本的标准

Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit 'c45444606650526f49c0d1a163a709bac249e6de':
  REPORT-56047 修改下判断是否为安版本的标准
zheng-1641779399395
Hades 3 years ago
parent
commit
42b825b7a7
  1. 3
      designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java

3
designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java vendored

@ -3,6 +3,7 @@ package com.fr.design.env;
import com.fr.general.ComparatorUtils;
import com.fr.general.GeneralUtils;
import com.fr.locale.InterProviderFactory;
import com.fr.stable.CoreConstants;
import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils;
import com.fr.stable.project.ProjectConstants;
@ -107,7 +108,7 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo {
File engineLib = new File(StableUtils.pathJoin(this.path, ProjectConstants.LIB_NAME, REPORT_ENGINE_JAR));
// 非安装版本允许自由切换
boolean notExistLib = !ComparatorUtils.equals(GeneralUtils.readFullBuildNO(), InterProviderFactory.getProvider().getLocText("Fine-Core_Basic_About_No_Build"))
boolean notExistLib = !CoreConstants.DOT.equals(StableUtils.getInstallHome())
&& !engineLib.exists();
if (notExistLib) {
throw new MainVersionNotMatchException();

Loading…
Cancel
Save