no message

This commit is contained in:
2024-10-10 14:29:54 +03:00
parent d1ffab1e70
commit 61f6c63e0b
8 changed files with 38 additions and 334 deletions

View File

@@ -17,20 +17,20 @@ public class UpdateComponent extends Pass<Component> {
}
@Override
protected void body() throws Exception {
PassCode subPass = PassCode.Undefined;
PassCode subPassCode = null;
//<editor-fold desc="получение нового файла компонента">
switch (Current.getComponent().getComponentType()) {
case Sapfor_F:
case Visualizer_2:
subPass = CommonUtils.isWindows() ? PassCode.DownloadComponent : PassCode.BuildComponent;
subPassCode = CommonUtils.isWindows() ? PassCode.DownloadComponent : PassCode.BuildComponent;
break;
case Visualiser:
case Instruction:
case PerformanceAnalyzer:
subPass = PassCode.DownloadComponent;
subPassCode = PassCode.DownloadComponent;
break;
}
if ((subPass != PassCode.Undefined) && passes.get(subPass).Do()) {
if ((subPassCode != null) && passes.get(subPassCode).Do()) {
//</editor-fold>
if (!Current.getComponent().getNewFile().exists())
throw new PassException("Не удалось получить новый файл для компонента " + Current.getComponent().getComponentType().getDescription());