no message

This commit is contained in:
2023-10-08 02:05:57 +03:00
parent 54f392ea58
commit 46e050382b
5 changed files with 9 additions and 18 deletions

View File

@@ -487,6 +487,6 @@ public enum Current {
Normal,
Server,
Testing,
Scenario
Package
}
}

View File

@@ -347,7 +347,7 @@ public class Global {
testingServer.Start();
System.exit(0);
}
public static void ScenarioMode() throws Exception {
public static void PackageMode() throws Exception {
isWindows = System.getProperty("os.name").startsWith("Windows");
Log = new Loggable() {
@Override
@@ -356,7 +356,7 @@ public class Global {
}
@Override
public String getLogName() {
return "Scenario";
return "Package";
}
};
Log.ClearLog();
@@ -383,8 +383,8 @@ public class Global {
case Testing:
TestingSystemMode();
break;
case Scenario:
ScenarioMode();
case Package:
PackageMode();
break;
case Undefined:
break;

View File

@@ -361,7 +361,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
FileUtils.copyFile(new File(Global.Home, "TestingSystem.jar"), visualiser);
//создание настроек
GlobalProperties properties = new GlobalProperties();
properties.Mode = Current.Mode.Scenario;
properties.Mode = Current.Mode.Package;
properties.threadsNum = Global.properties.threadsNum; //брать из настроек сервера же.
properties.threadsTimeout = Global.properties.threadsTimeout;
Utils.jsonToFile(properties, new File(sapforTasksPackage.workspace, "properties"));

View File

@@ -71,7 +71,7 @@ public class SPF_CreateParallelVariant extends SapforTransformation {
@Override
protected void performFinish() throws Exception {
//в пакетном режиме вариант всегда один. поэтому, сообщения надо распаковать сразу.
if (Current.mode.equals(Current.Mode.Scenario))
if (Current.mode.equals(Current.Mode.Package))
super.performFinish();
}
@Override