no message

This commit is contained in:
2023-10-08 01:57:25 +03:00
parent e9bd430d56
commit 54f392ea58
13 changed files with 55 additions and 56 deletions

View File

@@ -282,7 +282,6 @@ public class PerformSapforTask extends Pass_2021<SapforTask> {
}
//--
protected void createVersionProjectData(SapforVersion_json version, boolean isTransformation) throws Exception {
System.out.println("Checking version " + version);
db_project_info project = new db_project_info();
project.Home = new File(version.version);
project.name = project.Home.getName();
@@ -314,12 +313,10 @@ public class PerformSapforTask extends Pass_2021<SapforTask> {
//--
}
project.CreateVisualiserData();
System.out.println("visualiser data created");
//---
if (isTransformation && !messages.isEmpty()) {
project.Open();
project.db.BeginTransaction();
System.out.println("messages size=" + messages.size());
for (MessageError m : messages) {
if (project.db.files.containsKey(m.file)) {
DBProjectFile file = project.db.files.Data.get(m.file);
@@ -335,10 +332,8 @@ public class PerformSapforTask extends Pass_2021<SapforTask> {
//-------------------------------------------------->>
@Override
protected void body() throws Exception {
System.out.println(target.root + " " + Utils.Brackets(sapforConfiguration_json.flags));//!!
target.versions.add(new SapforVersion_json(target.root, "исходная"));
for (PassCode_2021 code : sapforConfiguration_json.codes) {
System.out.println(code); //!!
if (parse()) {
if (code.equals(PassCode_2021.CreateParallelVariants))
variants();
@@ -351,12 +346,9 @@ public class PerformSapforTask extends Pass_2021<SapforTask> {
@Override
protected void performFinish() throws Exception {
//теперь строим деревья версий. нельзя делать в body. так как могут быть исключения например неверный код процесса.
System.out.println("Построение дерева версий..");
for (SapforVersion_json version : target.versions)
createVersionProjectData(version, true);
for (SapforVersion_json version : target.variants)
createVersionProjectData(version, false);
//---->>>>
System.out.println("DONE");
}
}