|
|
@ -30,6 +30,7 @@ public class RecoverForDesigner implements Recover { |
|
|
|
CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(installHome, ProjectConstants.LOGS_NAME, |
|
|
|
CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(installHome, ProjectConstants.LOGS_NAME, |
|
|
|
UpdateConstants.INSTALL_LIB, UpdateConstants.DESIGNERBACKUPPATH), |
|
|
|
UpdateConstants.INSTALL_LIB, UpdateConstants.DESIGNERBACKUPPATH), |
|
|
|
StableUtils.pathJoin(StableUtils.getInstallHome(), ProjectConstants.LIB_NAME)); |
|
|
|
StableUtils.pathJoin(StableUtils.getInstallHome(), ProjectConstants.LIB_NAME)); |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("Recover down for designer"); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
FineLoggerFactory.getLogger().error("Recover error for designer", e); |
|
|
|
FineLoggerFactory.getLogger().error("Recover error for designer", e); |
|
|
@ -54,6 +55,7 @@ public class RecoverForDesigner implements Recover { |
|
|
|
CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(installHome,ProjectConstants.LIB_NAME), |
|
|
|
CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(installHome,ProjectConstants.LIB_NAME), |
|
|
|
StableUtils.pathJoin(installBackup,UpdateConstants.DESIGNERBACKUPPATH)); |
|
|
|
StableUtils.pathJoin(installBackup,UpdateConstants.DESIGNERBACKUPPATH)); |
|
|
|
DesignerContext.getDesignerFrame().prepareForExit(); |
|
|
|
DesignerContext.getDesignerFrame().prepareForExit(); |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("Backup down for designer"); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
UpdateException exception = new UpdateException("Backup Exception for designer" + e.getMessage()); |
|
|
|
UpdateException exception = new UpdateException("Backup Exception for designer" + e.getMessage()); |
|
|
|