Browse Source

Merge pull request #1182 in DESIGN/design from ~BRYANT/design:feature/10.0 to feature/10.0

* commit '8de350eeedb08bbcdc3f907b21f9dbf73a9215b7':
  KERNEL-418 更新升级重构
research/11.0
Bryant 5 years ago
parent
commit
2bcda9ced1
  1. 7
      designer-base/src/main/java/com/fr/design/update/actions/RecoverForDesigner.java

7
designer-base/src/main/java/com/fr/design/update/actions/RecoverForDesigner.java

@ -3,6 +3,7 @@ package com.fr.design.update.actions;
import com.fr.decision.update.backup.Recover; import com.fr.decision.update.backup.Recover;
import com.fr.decision.update.data.UpdateConstants; import com.fr.decision.update.data.UpdateConstants;
import com.fr.decision.update.exception.UpdateException; import com.fr.decision.update.exception.UpdateException;
import com.fr.general.CommonIOUtils;
import com.fr.general.GeneralUtils; import com.fr.general.GeneralUtils;
import com.fr.general.IOUtils; import com.fr.general.IOUtils;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -24,11 +25,11 @@ public class RecoverForDesigner implements Recover {
@Override @Override
public boolean recover() { public boolean recover() {
try{ try{
IOUtils.copyFilesInDirByPath(StableUtils.pathJoin(StableUtils.getInstallHome(), UpdateConstants.DESIGNERBACKUPPATH), CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(StableUtils.getInstallHome(), UpdateConstants.DESIGNERBACKUPPATH),
StableUtils.pathJoin(StableUtils.getInstallHome(), ProjectConstants.LIB_NAME)); StableUtils.pathJoin(StableUtils.getInstallHome(), ProjectConstants.LIB_NAME));
return true; return true;
} catch (IOException ignore) { } catch (IOException e) {
FineLoggerFactory.getLogger().error("Recover error for designer"); FineLoggerFactory.getLogger().error(e.getMessage() + "Recover error for designer");
return false; return false;
} }
} }

Loading…
Cancel
Save