рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -19,7 +19,7 @@ public class UpdateComponent extends Pass<Component> {
|
||||
protected void body() throws Exception {
|
||||
PassCode subPassCode = null;
|
||||
//<editor-fold desc="получение нового файла компонента">
|
||||
switch (Current.getComponent().getComponentType()) {
|
||||
switch (Global.mainModule.getComponent().getComponentType()) {
|
||||
case Sapfor_F:
|
||||
case Visualizer_2:
|
||||
subPassCode = Utils_.isWindows() ? PassCode.DownloadComponent : PassCode.BuildComponent;
|
||||
@@ -32,15 +32,15 @@ public class UpdateComponent extends Pass<Component> {
|
||||
}
|
||||
if ((subPassCode != null) && passes.get(subPassCode).Do()) {
|
||||
//</editor-fold>
|
||||
if (!Current.getComponent().getNewFile().exists())
|
||||
throw new PassException("Не удалось получить новый файл для компонента " + Current.getComponent().getComponentType().getDescription());
|
||||
if (!Global.mainModule.getComponent().getNewFile().exists())
|
||||
throw new PassException("Не удалось получить новый файл для компонента " + Global.mainModule.getComponent().getComponentType().getDescription());
|
||||
//непосредственное обновление.
|
||||
Current.getComponent().Update();
|
||||
Global.mainModule.getComponent().Update();
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void performFinish() throws Exception {
|
||||
Current.getComponent().CheckIfNeedsUpdateOrPublish();
|
||||
Global.mainModule.getComponent().CheckIfNeedsUpdateOrPublish();
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user