aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/io/trygvis
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-11 17:11:28 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-11 17:11:28 +0100
commit39636be7b018b9121696ce7bdc462ab2c3c8185d (patch)
tree08e33b02dce0082db08584ad6e09be1f4653bf41 /src/test/java/io/trygvis
parent4e9d5b5a447144c910c2698975157ee296e2eac8 (diff)
downloadesper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.gz
esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.bz2
esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.xz
esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.zip
o Creating bin/web for running the web application.
Diffstat (limited to 'src/test/java/io/trygvis')
-rwxr-xr-xsrc/test/java/io/trygvis/esper/testing/web/WebRunner.java10
1 files changed, 8 insertions, 2 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 b809cee..7cd2314 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,7 @@ package io.trygvis.esper.testing.web;
import io.trygvis.appsh.booter.jetty.*;
import io.trygvis.esper.testing.*;
-import java.io.*;
+import java.net.*;
public class WebRunner {
@@ -12,7 +12,13 @@ public class WebRunner {
JettyWebServer server = new JettyWebServer();
server.setHttpPort(1337);
- server.addContext("/", new File("src/main/webapp").getAbsoluteFile());
+// 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);
server.run();
}
}