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

1
.idea/workspace.xml generated
View File

@@ -9,7 +9,6 @@
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/MachineProcess/MachineProcess.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/MachineProcess/MachineProcess.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/MachineProcess/MachineProcessDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/MachineProcess/MachineProcessDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />

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();
}