Browse Source

Merge pull request #1245 in DESIGN/design from ~BRYANT/design:release/10.0 to release/10.0

* commit '58c5cbfcd6a24819f6f52c163cd79f0af6a2993a':
  REPORT-23486 修复bug以及更改文件夹
feature/big-screen
Bryant 5 years ago
parent
commit
198a68edff
  1. 8
      designer-base/src/main/java/com/fr/design/update/actions/RecoverForDesigner.java

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

@ -85,12 +85,12 @@ public class RecoverForDesigner implements Recover {
private void backupFilesFromInstallLib(String installHome, String todayBackupDir) {
try {
CommonUtils.mkdirs(new File(StableUtils.pathJoin(todayBackupDir,UpdateConstants.DESIGNERBACKUPPATH)));
File file = new File(StableUtils.pathJoin(installHome,ProjectConstants.LIB_NAME));
File[] files = file.listFiles();
File lib = new File(StableUtils.pathJoin(installHome,ProjectConstants.LIB_NAME));
File[] files = lib.listFiles();
File dir = new File(StableUtils.pathJoin(todayBackupDir,UpdateConstants.DESIGNERBACKUPPATH));
if (files != null) {
for (File file1 : files) {
if (file1.getName().startsWith(UpdateConstants.FINE) || file1.getName().contains(UpdateConstants.ASPECTJRT)) {
for (File file : files) {
if (file.getName().startsWith(UpdateConstants.FINE) || file.getName().contains(UpdateConstants.ASPECTJRT)) {
CommonIOUtils.copy(file, dir);
}
}

Loading…
Cancel
Save