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