Executable embedding ok

This commit is contained in:
Claude Brisson
2023-05-14 12:03:42 +02:00
parent 42ad283ee6
commit cbdf336a1c
3 changed files with 8 additions and 2 deletions

View File

@@ -42,6 +42,12 @@ public class JettyBootstrap
File warFile = new File(warLocation.toURI());
System.setProperty("org.eclipse.jetty.livewar.LOCATION",warFile.toPath().toRealPath().toString());
// CB we want colorized output on linux
if (System.getProperty("os.name").equalsIgnoreCase("linux"))
{
System.setProperty("org.eclipse.jetty.logging.appender.MESSAGE_ESCAPE", "false");
}
Class<?> mainClass = Class.forName("org.jeudego.pairgoth.container.ServerMain",false,clWar);
Method mainMethod = mainClass.getMethod("main",args.getClass());
mainMethod.invoke(mainClass,new Object[] { args });