проверка, что версии SAPFOR не собрана. v++
This commit is contained in:
@@ -1,22 +1,9 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import GlobalData.Machine.Machine;
|
||||
import GlobalData.Machine.MachineType;
|
||||
import GlobalData.RemoteFile.RemoteFile;
|
||||
import GlobalData.User.User;
|
||||
import ProjectData.LanguageName;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.SSH.ConnectionPass;
|
||||
import Visual_DVM_2021.Passes.Server.TestingSystemPass;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Vector;
|
||||
/*
|
||||
public class InstallServerSapfor extends ConnectionPass<Object> {
|
||||
boolean result;
|
||||
@@ -99,7 +86,7 @@ public class InstallServerSapfor extends ConnectionPass<Object> {
|
||||
}
|
||||
|
||||
*/
|
||||
public class InstallServerSapfor extends TestingSystemPass{
|
||||
public class InstallServerSapfor extends TestingSystemPass {
|
||||
boolean result;
|
||||
ServerSapfor serverSapfor;
|
||||
String version_text;
|
||||
@@ -131,41 +118,16 @@ public class InstallServerSapfor extends TestingSystemPass{
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.InstallServerSapfor));
|
||||
if (response.object!=null){
|
||||
if (response.object != null) {
|
||||
result = true;
|
||||
serverSapfor = (ServerSapfor) response.object;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void performFinish() throws Exception {
|
||||
super.performFinish();
|
||||
|
||||
new TestingSystemPass() {
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Рассылка выходных файлов сборки SAPFOR";
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Vector<String> info = new Vector<>();
|
||||
info.add(result ? serverSapfor.version : "?");
|
||||
info.add(result ? "Успешно" : "С ошибками");
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.EmailSapforAssembly,
|
||||
Current.getAccount().email,
|
||||
info
|
||||
));
|
||||
}
|
||||
}.Do();
|
||||
}
|
||||
@Override
|
||||
protected boolean validate() {
|
||||
return result;
|
||||
}
|
||||
@Override
|
||||
protected void showFail() throws Exception {
|
||||
Log.Writeln_("Файл [SAPFOR_F] не найден!");
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
passes.get(PassCode_2021.PublishServerSapfor).Do(serverSapfor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user