рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -25,13 +25,13 @@ public class StartSelectedSAPFORConfigurations extends PublishServerObject<Testi
@Override
protected boolean canStart(Object... args) throws Exception {
//--
if (!Current.getAccount().CheckRegistered(Log)) {
if (!Global.mainModule.getAccount().CheckRegistered(Log)) {
return false;
}
if (!Current_.Check(Log, Current.ServerSapfor)) {
if (!Global.mainModule.Check(Log, Current.ServerSapfor)) {
return false;
}
if (!Current.getServerSapfor().state.equals(ServerSapforState.Done)) {
if (!Global.mainModule.getServerSapfor().state.equals(ServerSapforState.Done)) {
Log.Writeln_("Выбранная версия SAPFOR не собрана!");
return false;
}
@@ -41,8 +41,8 @@ public class StartSelectedSAPFORConfigurations extends PublishServerObject<Testi
Log.Writeln_("Не отмечено ни одной конфигурации, или отсутствует текущая конфигурация.");
return false;
}
target = new SapforPackage(Current.getAccount(),
Current.getServerSapfor(),
target = new SapforPackage(Global.mainModule.getAccount(),
Global.mainModule.getServerSapfor(),
configurations,
Global.properties.EmailOnTestingProgress ? 1 : 0,
Log);