From 15ba9d1f16b80f21146dd97afdd42ebe665de87d Mon Sep 17 00:00:00 2001 From: hades Date: Tue, 24 Aug 2021 09:56:34 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-56047=20=E8=AE=BE=E8=AE=A1=E5=99=A811.0?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=86=85=E5=AE=B9=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/env/LocalDesignerWorkspaceInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java b/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java index ec1816e4d..ba2debeff 100644 --- a/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java +++ b/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java @@ -25,7 +25,7 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo { static { Properties properties = new Properties(); try { - properties.load(LocalDesignerWorkspaceInfo.class.getResourceAsStream("")); + properties.load(LocalDesignerWorkspaceInfo.class.getResourceAsStream("/com/fr/env/jarVersion.properties")); } catch (Exception ignored) { } REPORT_ENGINE_JAR = properties.getProperty(REPORT_ENGINE_KEY, "default.jar"); @@ -104,9 +104,9 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo { 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(); if (notExistLib) { throw new MainVersionNotMatchException();