diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-06-17 11:30:34 +0300 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-06-18 14:57:49 +0300 |
commit | ffbb1d0f4ad0033ebe9a463430cba49dd7a9aaf6 (patch) | |
tree | 35970a714a281154a8dfac773d9543833dceae8a | |
parent | 717cc858a6e160ad2aa527d99c4d316a7e683229 (diff) | |
download | vaadin-framework-ffbb1d0f4ad0033ebe9a463430cba49dd7a9aaf6.tar.gz vaadin-framework-ffbb1d0f4ad0033ebe9a463430cba49dd7a9aaf6.zip |
Speed up dev server startup
- Don't have Atmosphere scan the entire classpath for annotations
- Don't use load-on-startup = -1 since Jetty still inits the servlets
- Avoid initing the integration test servlet for serving /VAADIN/*
Change-Id: Ic6a650442a11ac87ce15dabce3acda12a9cc71b3
-rw-r--r-- | WebContent/WEB-INF/web.xml | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml index 9f321b5bc8..268fe1ea66 100644 --- a/WebContent/WEB-INF/web.xml +++ b/WebContent/WEB-INF/web.xml @@ -24,8 +24,11 @@ <param-name>application</param-name> <param-value>com.vaadin.tests.components.button.Buttons</param-value> </init-param> + <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> <async-supported>true</async-supported> - <load-on-startup>-1</load-on-startup> </servlet> <servlet> <servlet-name>Embed App 2</servlet-name> @@ -34,8 +37,11 @@ <param-name>UI</param-name> <param-value>com.vaadin.tests.components.label.MarginsInLabels</param-value> </init-param> + <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> <async-supported>true</async-supported> - <load-on-startup>-1</load-on-startup> </servlet> <servlet> <servlet-name>UI provider app</servlet-name> @@ -48,8 +54,11 @@ <param-name>UI</param-name> <param-value>com.vaadin.tests.VerifyAssertionsEnabled</param-value> </init-param> + <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> <async-supported>true</async-supported> - <load-on-startup>-1</load-on-startup> </servlet> <servlet> @@ -61,6 +70,10 @@ <param-value>false</param-value> </init-param> <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> + <init-param> <param-name>heartbeatInterval</param-name> <param-value>301</param-value> </init-param> @@ -77,7 +90,6 @@ <param-value>42</param-value> </init-param> <async-supported>true</async-supported> - <load-on-startup>-1</load-on-startup> </servlet> <servlet> @@ -88,7 +100,10 @@ --> <servlet-name>VaadinApplicationRunnerWithTimeoutRedirect</servlet-name> <servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class> - <load-on-startup>-1</load-on-startup> + <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> </servlet> <servlet> @@ -99,7 +114,10 @@ <param-value>automatic</param-value> </init-param> <async-supported>true</async-supported> - <load-on-startup>-1</load-on-startup> + <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> </servlet> <!-- For testing GAE - the deployment script changes this to use GAEVaadinServlet --> @@ -111,7 +129,10 @@ <param-value>com.vaadin.tests.integration.ServletIntegrationUI</param-value> </init-param> <async-supported>true</async-supported> - <load-on-startup>-1</load-on-startup> + <init-param> + <param-name>org.atmosphere.cpr.scanClassPath</param-name> + <param-value>false</param-value> + </init-param> </servlet> <servlet-mapping> <servlet-name>Embed App 1</servlet-name> @@ -149,7 +170,7 @@ </servlet-mapping> <servlet-mapping> - <servlet-name>IntegrationTest</servlet-name> + <servlet-name>VaadinApplicationRunner</servlet-name> <url-pattern>/VAADIN/*</url-pattern> </servlet-mapping> |