|
|
@ -240,7 +240,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
String installHome = StableUtils.getInstallHome(); |
|
|
|
String installHome = StableUtils.getInstallHome(); |
|
|
|
//这里不判断路径是.的情况,放在checkValid方法里面,重新选
|
|
|
|
//这里不判断路径是.的情况,放在checkValid方法里面,重新选
|
|
|
|
if (installHome != null) { |
|
|
|
if (installHome != null) { |
|
|
|
String name = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Engine_DEFAULT"); |
|
|
|
String name = Toolkit.i18nText("Fine-Design_Basic_Engine_DEFAULT"); |
|
|
|
String envPath = designerEnvManager.getDefaultenvPath(installHome); |
|
|
|
String envPath = designerEnvManager.getDefaultenvPath(installHome); |
|
|
|
designerEnvManager.putEnv(name, LocalDesignerWorkspaceInfo.create(name, envPath)); |
|
|
|
designerEnvManager.putEnv(name, LocalDesignerWorkspaceInfo.create(name, envPath)); |
|
|
|
designerEnvManager.setCurEnvName(name); |
|
|
|
designerEnvManager.setCurEnvName(name); |
|
|
@ -304,8 +304,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
String today = calender.get(Calendar.YEAR) + "-" + (calender.get(Calendar.MONTH) + 1) + "-" + calender.get(Calendar.DAY_OF_MONTH); |
|
|
|
String today = calender.get(Calendar.YEAR) + "-" + (calender.get(Calendar.MONTH) + 1) + "-" + calender.get(Calendar.DAY_OF_MONTH); |
|
|
|
|
|
|
|
|
|
|
|
String fileName = StableUtils.pathJoin(logLocation, "fr_" + today + "_%g.log"); |
|
|
|
String fileName = StableUtils.pathJoin(logLocation, "fr_" + today + "_%g.log"); |
|
|
|
if (!new java.io.File(fileName).exists()) { |
|
|
|
if (!new File(fileName).exists()) { |
|
|
|
StableUtils.makesureFileExist(new java.io.File(fileName)); |
|
|
|
StableUtils.makesureFileExist(new File(fileName)); |
|
|
|
} |
|
|
|
} |
|
|
|
Handler handler = new FileHandler(fileName, true); |
|
|
|
Handler handler = new FileHandler(fileName, true); |
|
|
|
|
|
|
|
|
|
|
@ -529,7 +529,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
return env; |
|
|
|
return env; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
String name = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Workspace_Default"); |
|
|
|
String name = Toolkit.i18nText("Fine-Design_Basic_Workspace_Default"); |
|
|
|
LocalDesignerWorkspaceInfo newDefaultEnv = LocalDesignerWorkspaceInfo.create(name, defaultenvPath); |
|
|
|
LocalDesignerWorkspaceInfo newDefaultEnv = LocalDesignerWorkspaceInfo.create(name, defaultenvPath); |
|
|
|
this.putEnv(name, newDefaultEnv); |
|
|
|
this.putEnv(name, newDefaultEnv); |
|
|
|
return newDefaultEnv; |
|
|
|
return newDefaultEnv; |
|
|
@ -552,7 +552,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Workspace_Default"); |
|
|
|
return Toolkit.i18nText("Fine-Design_Basic_Workspace_Default"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1643,7 +1643,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
if ((tmpVal = reader.getAttrAsString("webinfLocation", null)) != null) { |
|
|
|
if ((tmpVal = reader.getAttrAsString("webinfLocation", null)) != null) { |
|
|
|
// marks:兼容6.1的
|
|
|
|
// marks:兼容6.1的
|
|
|
|
// marks:设置默认的目录.
|
|
|
|
// marks:设置默认的目录.
|
|
|
|
String curReportServerName = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Server_Embedded_Server"); |
|
|
|
String curReportServerName = Toolkit.i18nText("Fine-Design_Basic_Server_Embedded_Server"); |
|
|
|
LocalDesignerWorkspaceInfo reportServer = LocalDesignerWorkspaceInfo.create(curReportServerName, tmpVal); |
|
|
|
LocalDesignerWorkspaceInfo reportServer = LocalDesignerWorkspaceInfo.create(curReportServerName, tmpVal); |
|
|
|
|
|
|
|
|
|
|
|
this.putEnv(curReportServerName, reportServer); |
|
|
|
this.putEnv(curReportServerName, reportServer); |
|
|
|