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

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

@@ -21,8 +21,8 @@ public class DownloadTest extends TestingSystemPass<Test> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (Current.getAccount().CheckRegistered(Log) && Current_.Check(Log, Current.Test)) {
target = Current.getTest();
if (Global.mainModule.getAccount().CheckRegistered(Log) && Global.mainModule.Check(Log, Current.Test)) {
target = Global.mainModule.getTest();
return true;
}
return false;
@@ -30,7 +30,7 @@ public class DownloadTest extends TestingSystemPass<Test> {
@Override
protected void performPreparation() throws Exception {
passes.get(PassCode.CloseCurrentProject).Do();
Current_.set(Current.Root, null); //чтобы гарантированно не существовало корня.
Global.mainModule.set(Current.Root, null); //чтобы гарантированно не существовало корня.
Utils.forceDeleteWithCheck(target.getArchive());
Utils.forceDeleteWithCheck(target.getHomePath());
}