# HG changeset patch # User Severin Gehwolf # Date 1474358636 -7200 # Node ID 04da543b538a5aa37b4de65d429441f5b27297f1 # Parent 8969efd1f8281ad6eb31d4ea63de5c1d57af723b Add support for Tomcat 8. Reviewed-by: omajid, jkang Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-September/020943.html PR3176 diff -r 8969efd1f828 -r 04da543b538a web/war/pom.xml --- a/web/war/pom.xml Thu Sep 22 11:39:51 2016 -0400 +++ b/web/war/pom.xml Tue Sep 20 10:03:56 2016 +0200 @@ -50,6 +50,37 @@ Thermostat Web WAR package + + + + tomcat8 + + + tomcat + 8 + + + + src/main/webapp-tomcat8 + + + + tomcat-lower-8 + + true + + + src/main/webapp-tomcat7 + + + + @@ -211,6 +242,46 @@ true + + maven-resources-plugin + + + move-web-resources + generate-sources + + copy-resources + + + ${project.build.directory}/webapp-resources + + + src/main/webapp + + true + + + + + + move-context-xml + process-sources + + copy-resources + + + ${project.build.directory}/webapp-resources + + + ${tomcat-context-xml-dir} + + **/context.xml + + + + + + + - - - true - src/main/webapp - - **/web.xml - - - - src/main/webapp - src/main/webapp/WEB-INF/web.xml + ${project.build.directory}/webapp-resources + ${project.build.directory}/webapp-resources/WEB-INF/web.xml true diff -r 8969efd1f828 -r 04da543b538a web/war/src/main/webapp-tomcat7/META-INF/context.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/war/src/main/webapp-tomcat7/META-INF/context.xml Tue Sep 20 10:03:56 2016 +0200 @@ -0,0 +1,47 @@ + + + + + + + diff -r 8969efd1f828 -r 04da543b538a web/war/src/main/webapp-tomcat8/META-INF/context.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/war/src/main/webapp-tomcat8/META-INF/context.xml Tue Sep 20 10:03:56 2016 +0200 @@ -0,0 +1,48 @@ + + + + + + + + diff -r 8969efd1f828 -r 04da543b538a web/war/src/main/webapp/META-INF/context.xml --- a/web/war/src/main/webapp/META-INF/context.xml Thu Sep 22 11:39:51 2016 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ - - - - - - -