Переделана публикация текущего проекта как теста, из за автоинкремента делается после создания объекта бд.

This commit is contained in:
2023-11-17 00:58:58 +03:00
parent beb1359544
commit 01fcc59597
9 changed files with 88 additions and 176 deletions

View File

@@ -44,22 +44,6 @@ public class PublishTest extends PublishServerObject<TestingServer, Test> {
@Override
protected void performDone() throws Exception {
super.performDone();
// passes.get()
passes.get(PassCode_2021.PublishTestProject).Do(project, pk);
}
//--
/*
if (super.fillObjectFields()) {
File src = Utils.getTempFileName("test"); //id самого теста неизвестен.
Utils.CheckAndCleanDirectory(src);
project.Clone(src, false);
FileUtils.copyFile(project.db.getFile(),
Paths.get(src.getAbsolutePath(),Constants.data, project.db.getFile().getName()).toFile());
//архивация.
File archive = Utils.getTempFileName("test");
if (passes.get(PassCode_2021.ZipFolderPass).Do(src.getAbsolutePath(), archive.getAbsolutePath())) {
target.project_archive_bytes = Utils.packFile(archive);
return true;
}
}
*/
}