Commit 62dfef26 authored by MarkG's avatar MarkG Committed by TIGERs GitLab
Browse files

Resolve "Initialize GC config with NO_PROGRESS=ignore"

Closes #1625

See merge request main/Sumatra!1366

sumatra-commit: 4dcae30f18ffa6c35c456da11ec033d2bce0feef
parent 06209483
Pipeline #8907 passed with stage
in 4 minutes and 26 seconds
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.referee;
......@@ -12,6 +12,7 @@ import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
......@@ -56,6 +57,21 @@ public class SslGameControllerProcess implements Runnable
return;
}
Path engineConfig = Path.of("config", "engine.yaml");
Path engineConfigDefault = Path.of("config", "engine-default.yaml");
if (!Files.exists(engineConfig) && Files.exists(engineConfigDefault))
{
log.info("Initialize engine.yaml with engine-default.yaml");
try
{
Files.copy(engineConfigDefault, engineConfig);
} catch (IOException e)
{
log.warn("Could not copy default engine config", e);
}
}
try
{
log.debug("Starting with: {} {} {}", gcUiPort, timeAcquisitionMode, publishAddress);
......@@ -65,7 +81,7 @@ public class SslGameControllerProcess implements Runnable
command.add(":" + gcUiPort);
command.add("-timeAcquisitionMode");
command.add(timeAcquisitionMode);
if(!publishAddress.isBlank())
if (!publishAddress.isBlank())
{
command.add("-publishAddress");
command.add(publishAddress);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment