@ -100,17 +100,17 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo {
@Override
@Override
public boolean checkValid ( ) {
public boolean checkValid ( ) {
// 如果当前是 debug 模式,就不检测这个逻辑
if ( CommonUtils . isDebug ( ) ) {
return true ;
}
File file = new File ( this . path ) ;
File file = new File ( this . path ) ;
//判断不是文件夹/路径不在WEB-INF下/代码启动三种情况
//判断不是文件夹/路径不在WEB-INF下/代码启动三种情况
if ( ! file . isDirectory ( ) | | ! ComparatorUtils . equals ( file . getName ( ) , "WEB-INF" ) | | this . path . startsWith ( "." ) ) {
if ( ! file . isDirectory ( ) | | ! ComparatorUtils . equals ( file . getName ( ) , "WEB-INF" ) | | this . path . startsWith ( "." ) ) {
return false ;
return false ;
}
}
// 如果当前是 debug 模式,就不检测是否 mainVersion 不一致
if ( CommonUtils . isDebug ( ) ) {
return true ;
}
File engineLib = new File ( StableUtils . pathJoin ( this . path , ProjectConstants . LIB_NAME , REPORT_ENGINE_JAR ) ) ;
File engineLib = new File ( StableUtils . pathJoin ( this . path , ProjectConstants . LIB_NAME , REPORT_ENGINE_JAR ) ) ;
// 非安装版本允许自由切换
// 非安装版本允许自由切换
boolean notExistLib = ! CoreConstants . DOT . equals ( StableUtils . getInstallHome ( ) )
boolean notExistLib = ! CoreConstants . DOT . equals ( StableUtils . getInstallHome ( ) )