no message

This commit is contained in:
2023-11-09 01:47:46 +03:00
parent 3bcf8861f2
commit a6ebd5f1f9
6 changed files with 158 additions and 123 deletions

View File

@@ -168,13 +168,24 @@ public class SapforPackagesComparisonForm {
Log.Writeln_("Наборы конфигураций не совпадают!");
return false;
}
return true;
for (String key1 : package1.results.allTasks.keySet()) {
if (!package2.results.allTasks.containsKey(key1)) {
Log.Writeln_("Задача эталона " + key1 + "не найдена в сравниваемом пакете!");
}
}
return Log.isEmpty();
}
return false;
}
@Override
protected void performPreparation() throws Exception {
for (SapforTask task : package1.results.sortedTasks.values())
package1.results.comparisonSortedTasks.clear();
package2.results.comparisonSortedTasks.clear();
//сброс всех состояний задач.
for (SapforTask task : package1.results.allTasks.values())
task.match = MatchState.NotMatch;
//--
for (SapforTask task : package2.results.allTasks.values())
task.match = MatchState.NotMatch;
}
@Override
@@ -185,19 +196,12 @@ public class SapforPackagesComparisonForm {
}
@Override
protected void body() throws Exception {
for (String key1 : package1.results.sortedTasks.keySet()) {
if (!package2.results.sortedTasks.containsKey(key1)) {
Log.Writeln_("Задача эталона " + key1 + "не найдена в сравниваемом пакете!");
}
}
if (Log.isEmpty()) {
//теперь сравниваем задачи
for (String key1 : package1.results.sortedTasks.keySet()) {
SapforTask task1 = package1.results.sortedTasks.get(key1);
SapforTask task2 = package2.results.sortedTasks.get(key1);
//--
task1.checkMatch(task2);
}
//теперь сравниваем задачи
for (String key1 : package1.results.allTasks.keySet()) {
SapforTask task1 = package1.results.allTasks.get(key1);
SapforTask task2 = package2.results.allTasks.get(key1);
//--
task1.checkMatch(task2);
}
}
@Override