From 79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 19 Dec 2012 23:42:12 +0100 Subject: o Adding a basic web app. --- .../java/io/trygvis/esper/testing/web/WebRunner.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/java/io/trygvis/esper/testing/web/WebRunner.java (limited to 'src/test') diff --git a/src/test/java/io/trygvis/esper/testing/web/WebRunner.java b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java new file mode 100644 index 0000000..36c2dfb --- /dev/null +++ b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java @@ -0,0 +1,19 @@ +package io.trygvis.esper.testing.web; + +import io.trygvis.appsh.booter.jetty.JettyWebServer; +import org.slf4j.bridge.*; + +import java.io.*; + +public class WebRunner { + + public static void main(String[] args) throws Exception { + SLF4JBridgeHandler.removeHandlersForRootLogger(); + SLF4JBridgeHandler.install(); + + JettyWebServer server = new JettyWebServer(); + server.setHttpPort(1337); + server.addContext("/", new File("src/main/webapp").getAbsoluteFile()); + server.run(); + } +} -- cgit v1.2.3