Browse Source

Merge pull request #1246 in DESIGN/design from ~BRYANT/design:final/10.0 to final/10.0

* commit '8414fc8773230d1f5ff11799d7f1f2fba86c4cdf':
  REPORT-23486 修复bug以及更改文件夹
final/10.0
Kara 5 years ago
parent
commit
f37ffb2b29
  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