патч для перехода на другие ключи багов.

This commit is contained in:
2025-12-15 21:56:29 +03:00
parent 42b179a0cc
commit 7bb4531c1b
6 changed files with 36 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
package _VisualDVM.Passes.All;
import Common.Utils.Utils_;
import _VisualDVM.Current;
import _VisualDVM.Global;
import _VisualDVM.Passes.PassCode;
@@ -18,6 +19,7 @@ public class DownloadAllBugReportsArchives extends ComponentsServerPass<File> {
protected void performPreparation() throws Exception {
Global.mainModule.getPass(PassCode.CloseCurrentProject).Do();
Global.mainModule.set(Current.Root, null); //чтобы гарантированно не существовало корня.
Utils.CleanDirectory(Global.BugReportsDirectory_OLD);
Utils.CleanDirectory(Global.BugReportsDirectory);
}
@Override
@@ -46,7 +48,7 @@ public class DownloadAllBugReportsArchives extends ComponentsServerPass<File> {
File[] archives = t2.listFiles();
if (archives != null) {
for (File file : archives) {
FileUtils.moveFile(file, Paths.get(Global.BugReportsDirectory.getAbsolutePath(), file.getName() + ".zip").toFile());
FileUtils.moveFile(file, Paths.get(Global.BugReportsDirectory_OLD.getAbsolutePath(), file.getName() + ".zip").toFile());
}
}
}