Переделана публикация текущего проекта как теста, из за автоинкремента делается после создания объекта бд.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user