From 8cc03c265f6bf67af9e7eebd042004d8204e0759 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Fri, 19 Aug 2016 16:06:04 +0000 Subject: [PATCH] JettyStart: Fix (now unused) main() --- apps/jetty/java/src/net/i2p/jetty/JettyStart.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/jetty/java/src/net/i2p/jetty/JettyStart.java b/apps/jetty/java/src/net/i2p/jetty/JettyStart.java index 79fec449c7..2c1b6c2553 100644 --- a/apps/jetty/java/src/net/i2p/jetty/JettyStart.java +++ b/apps/jetty/java/src/net/i2p/jetty/JettyStart.java @@ -38,6 +38,7 @@ import org.eclipse.jetty.xml.XmlConfiguration; /** * Start Jetty where the args are one or more XML files. * Save a reference to the Server so it can be cleanly stopped later. + * Caller must call startup() * * This is like XmlConfiguration.main(), which is essentially what * org.mortbay.start.Main does. @@ -215,7 +216,8 @@ public class JettyStart implements ClientApp { */ public static void main(String[] args) { try { - new JettyStart(null, null, args); + JettyStart js = new JettyStart(null, null, args); + js.startup(); } catch (RuntimeException e) { throw e; } catch (Exception e) { -- GitLab