Перенос кнопки синхронизации на панель тестирования. Исправление бага с формированием пакета.
This commit is contained in:
@@ -75,4 +75,9 @@ public class AddDVMPackage extends AddObjectPass<DVMPackage> {
|
||||
//черновик не вставляется в бд. идет только как элемент списка.
|
||||
Global.testingServer.db.dvmPackages.Data.put(target.id, target);
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
super.showDone();
|
||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(target);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,5 +170,6 @@ public class AddTasksToDVMPackage extends Pass_2021<DVMPackage> {
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
Global.testingServer.db.dvmPackages.ShowUI(target.id);
|
||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(target);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Global;
|
||||
import Common.UI.UI;
|
||||
import Common.Utils.Utils;
|
||||
import TestingSystem.DVM.DVMPackage.DVMPackage;
|
||||
import Visual_DVM_2021.Passes.DeleteTestingPackages;
|
||||
|
||||
@@ -15,13 +14,8 @@ public class DeleteDVMPackage extends DeleteTestingPackages<DVMPackage> {
|
||||
UI.getMainWindow().getTestingWindow().DropTestRunTasksComparison();
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
super.performDone();
|
||||
for (Object object : target) {
|
||||
int id = (int) object;
|
||||
File workspace = new File(Global.PackagesDirectory, String.valueOf(id));
|
||||
Utils.forceDeleteWithCheck(workspace);
|
||||
}
|
||||
protected File getPackagesHome() {
|
||||
return Global.DVMPackagesDirectory;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
||||
import Visual_DVM_2021.Passes.DeleteTestingPackages;
|
||||
|
||||
import java.io.File;
|
||||
public class DeleteSapforPackage extends DeleteTestingPackages<SapforPackage> {
|
||||
public DeleteSapforPackage() {
|
||||
super(SapforPackage.class);
|
||||
}
|
||||
@Override
|
||||
protected File getPackagesHome() {
|
||||
return Global.SapforPackagesDirectory;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ public class DownloadSapforPackage extends Pass_2021<SapforPackage> {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
File workspace = target.getLocalWorkspace();
|
||||
Utils.forceDeleteWithCheck(workspace);
|
||||
File archive = Utils.getTempFileName(String.valueOf(target.id));
|
||||
Utils.unpackFile(packed,archive);
|
||||
passes.get(PassCode_2021.UnzipFolderPass).Do(archive.getAbsolutePath(), Global.SapforPackagesDirectory.getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user