Browse Source

REPORT-56047 设计器11.0适配内容处理

research/11.0
hades 3 years ago
parent
commit
15ba9d1f16
  1. 6
      designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java

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

@ -25,7 +25,7 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo {
static { static {
Properties properties = new Properties(); Properties properties = new Properties();
try { try {
properties.load(LocalDesignerWorkspaceInfo.class.getResourceAsStream("")); properties.load(LocalDesignerWorkspaceInfo.class.getResourceAsStream("/com/fr/env/jarVersion.properties"));
} catch (Exception ignored) { } catch (Exception ignored) {
} }
REPORT_ENGINE_JAR = properties.getProperty(REPORT_ENGINE_KEY, "default.jar"); REPORT_ENGINE_JAR = properties.getProperty(REPORT_ENGINE_KEY, "default.jar");
@ -104,9 +104,9 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo {
return false; return false;
} }
File engineLib = new File(StableUtils.pathJoin(ProjectConstants.LIB_NAME, REPORT_ENGINE_JAR)); 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 = true
&& !engineLib.exists(); && !engineLib.exists();
if (notExistLib) { if (notExistLib) {
throw new MainVersionNotMatchException(); throw new MainVersionNotMatchException();

Loading…
Cancel
Save