From 6085e4286da1ad625ce5da7bfdf9aa8faff19f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 16 Mar 2017 12:25:55 +0100 Subject: java : vaadin : clean up ant tasks, support runnable jar --- java/vaadin/build.xml | 72 ++++++++++++++++++---- java/vaadin/src/main/resources/logback-test.xml | 11 +--- java/vaadin/src/run/java/ch/asynk/Main.java | 4 +- .../src/run/resources/jetty-logging.properties | 6 ++ 4 files changed, 71 insertions(+), 22 deletions(-) create mode 100644 java/vaadin/src/run/resources/jetty-logging.properties diff --git a/java/vaadin/build.xml b/java/vaadin/build.xml index 3a09f9d..4cd8da1 100644 --- a/java/vaadin/build.xml +++ b/java/vaadin/build.xml @@ -2,13 +2,13 @@ + default="war"> - + @@ -19,7 +19,8 @@ - + + @@ -46,6 +47,7 @@ + @@ -74,7 +76,7 @@ - + @@ -89,13 +91,13 @@ - - + + - + - + - + @@ -149,7 +151,7 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -188,7 +236,7 @@ - + - - - - - - - - - + + diff --git a/java/vaadin/src/run/java/ch/asynk/Main.java b/java/vaadin/src/run/java/ch/asynk/Main.java index 5686ecc..faf1f72 100644 --- a/java/vaadin/src/run/java/ch/asynk/Main.java +++ b/java/vaadin/src/run/java/ch/asynk/Main.java @@ -6,6 +6,8 @@ public class Main { public static void main(String[] args) throws Exception { - new VaadinJettyServer(8080, HelloWorld.class, "./src/main/WebContent/").start(); + String webRoot = System.getProperty("WEBROOT"); + if (webRoot == null) webRoot = "./src/main/WebContent/"; + new VaadinJettyServer(8080, HelloWorld.class, webRoot).start(); } } diff --git a/java/vaadin/src/run/resources/jetty-logging.properties b/java/vaadin/src/run/resources/jetty-logging.properties new file mode 100644 index 0000000..71495db --- /dev/null +++ b/java/vaadin/src/run/resources/jetty-logging.properties @@ -0,0 +1,6 @@ +# Configure for System.err output +org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog +# Configure StdErrLog to log all jetty namespace at default of WARN or above +org.eclipse.jetty.LEVEL=WARN +# Configure StdErrLog to log websocket specific namespace at DEBUG or above +org.eclipse.jetty.websocket.LEVEL=INFO -- cgit v1.1-2-g2b99