перенос проходов в центральный модуль

This commit is contained in:
2024-10-13 23:55:03 +03:00
parent 6afa2dc892
commit 4e86871571
150 changed files with 510 additions and 576 deletions

View File

@@ -21,8 +21,8 @@ public class DeleteDownloadedBugReports extends Pass<DirInfosDataSet> {
@Override
protected boolean canStart(Object... args) throws Exception {
target = null;
if (passes.get(PassCode.GetOldBugReports).Do()){
target = (DirInfosDataSet) passes.get(PassCode.GetOldBugReports).target;
if ( Global.mainModule.getPass(PassCode.GetOldBugReports).Do()){
target = (DirInfosDataSet) Global.mainModule.getPass(PassCode.GetOldBugReports).target;
if (target.Data.isEmpty()){
Log.Writeln_("Не найдено отчетов, не использовавшихся " +
(Global.mainModule.getDb()).settings.get(SettingName.BugReportsAgeLimit).toInt32() +
@@ -59,7 +59,7 @@ public class DeleteDownloadedBugReports extends Pass<DirInfosDataSet> {
@Override
protected void performPreparation() throws Exception {
if (Global.mainModule.HasProject())
passes.get(PassCode.CloseCurrentProject).Do();
Global.mainModule.getPass(PassCode.CloseCurrentProject).Do();
}
@Override
protected void body() throws Exception {