|
|
@ -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(); |
|
|
|