aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-11 23:46:25 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-11 23:46:25 +0100
commit0eecb30bd90bce96730fdf89091c610069af590d (patch)
tree3957998f653b7bf10152ff7e09190b97481bdfec /src
parent0133e8876c3270cfbb31d96a79cc9bbd411e4e2d (diff)
downloadesper-testing-0eecb30bd90bce96730fdf89091c610069af590d.tar.gz
esper-testing-0eecb30bd90bce96730fdf89091c610069af590d.tar.bz2
esper-testing-0eecb30bd90bce96730fdf89091c610069af590d.tar.xz
esper-testing-0eecb30bd90bce96730fdf89091c610069af590d.zip
o Updating to the latest booter-jetty api.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/java/io/trygvis/esper/testing/web/WebRunner.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/test/java/io/trygvis/esper/testing/web/WebRunner.java b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java
index 7cd2314..a790a63 100755
--- a/src/test/java/io/trygvis/esper/testing/web/WebRunner.java
+++ b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java
@@ -2,7 +2,8 @@ package io.trygvis.esper.testing.web;
import io.trygvis.appsh.booter.jetty.*;
import io.trygvis.esper.testing.*;
-import java.net.*;
+
+import java.io.*;
public class WebRunner {
@@ -12,13 +13,8 @@ public class WebRunner {
JettyWebServer server = new JettyWebServer();
server.setHttpPort(1337);
-// server.addContext("/", new File("src/main/resources/webapp").getAbsoluteFile());
- URL resource = WebRunner.class.getResource("/webapp/index.jspx");
- System.out.println("resource = " + resource);
- System.out.println("resource.toExternalForm() = " + resource.toExternalForm());
-
-// server.addContext("/", new File(resource.toExternalForm()));
- server.addContext("/", resource);
+ File webapp = new File(WebRunner.class.getResource("/webapp").getPath());
+ server.addContext(new JettyWebServer.WarContext("/", webapp));
server.run();
}
}