перенос проходов в центральный модуль
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user