no message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user