no message

This commit is contained in:
2024-04-23 01:39:54 +03:00
parent cefbd875c8
commit 291c804fc7
3 changed files with 9 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ public class MachineProcess extends iDBObject {
//копирование визуализатора
File src = new File(Global.Home, "TestingSystem.jar");
File supervisor = new File(workspace, "VisualSapfor.jar");
FileUtils.copyFile(Global.visualiser.getFile(), supervisor);
FileUtils.copyFile(src, supervisor);
//создание настроек
GlobalProperties properties = new GlobalProperties();
properties.Mode = Current.Mode.MachineQueue;

View File

@@ -173,6 +173,14 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
System.out.println(key);
}
System.out.println("-------------------");
//запуск.
for (MachineProcess process: processes_to_start.values()){
System.out.println("Запуск процесса "+process.getUniqueKey()+" ...");
process.Start();
process.state=MachineProcessState.Active;
db.Insert(process);
System.out.println("Выполнено");
}
} catch (Exception ex) {
ex.printStackTrace();
}