рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user