|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.fr.design.update.actions; |
|
|
|
|
|
|
|
|
|
import com.fr.decision.update.backup.Recover; |
|
|
|
|
import com.fr.decision.workspace.EnvPathManager; |
|
|
|
|
import com.fr.decision.update.data.UpdateConstants; |
|
|
|
|
import com.fr.decision.update.exception.UpdateException; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
@ -9,6 +8,7 @@ import com.fr.general.CommonIOUtils;
|
|
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.CommonUtils; |
|
|
|
|
import com.fr.stable.ProjectLibrary; |
|
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ public class RecoverForDesigner implements Recover {
|
|
|
|
|
public boolean backup() { |
|
|
|
|
//jar包备份文件的目录为"backup/"+jar包当前版本号
|
|
|
|
|
String todayBackupDir = StableUtils.pathJoin(installHome, UpdateConstants.DESIGNER_BACKUP_DIR, (GeneralUtils.readBuildNO())); |
|
|
|
|
String envHome = EnvPathManager.getInstance().getEnvHome(); |
|
|
|
|
String envHome = ProjectLibrary.getInstance().getLibHome(); |
|
|
|
|
backupFilesFromInstallEnv(envHome, todayBackupDir); |
|
|
|
|
backupFilesFromInstallLib(installHome, todayBackupDir); |
|
|
|
|
try { |
|
|
|
|