перенос проходов в центральный модуль
This commit is contained in:
@@ -42,15 +42,15 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected void performPreparation() throws Exception {
|
||||
passes.get(PassCode.CloseCurrentProject).Do();
|
||||
Global.mainModule.getPass(PassCode.CloseCurrentProject).Do();
|
||||
Global.mainModule.set(Current.Root, null); //чтобы гарантированно не существовало корня.
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
//попытка скачки. проверка существования архива уже там.
|
||||
passes.get(PassCode.DownloadBugReport).Do(target);
|
||||
Global.mainModule.getPass(PassCode.DownloadBugReport).Do(target);
|
||||
if (BugReportInterface.getArchiveFile(target).exists()) {
|
||||
passes.get(PassCode.UnzipFolderPass).Do(
|
||||
Global.mainModule.getPass(PassCode.UnzipFolderPass).Do(
|
||||
BugReportInterface.getArchiveFile(target).getAbsolutePath(),
|
||||
root.getAbsolutePath()
|
||||
);
|
||||
@@ -67,7 +67,7 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
if (passes.get(PassCode.OpenCurrentProject).Do(project))
|
||||
passes.get(PassCode.ApplyBugReportSettings).Do();
|
||||
if ( Global.mainModule.getPass(PassCode.OpenCurrentProject).Do(project))
|
||||
Global.mainModule.getPass(PassCode.ApplyBugReportSettings).Do();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user