Fix problem in web.xml template
Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/38c4da0f Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/38c4da0f Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/38c4da0f Branch: refs/heads/develop Commit: 38c4da0fad755b17b4fa01fb2dbcb1f17fac3b5f Parents: e236498 Author: niclas <[email protected]> Authored: Thu Apr 13 13:48:57 2017 +0800 Committer: niclas <[email protected]> Committed: Thu Apr 13 13:48:57 2017 +0800 ---------------------------------------------------------------------- .../app/templates/RestAPIApplication/web.xml.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/polygene-java/blob/38c4da0f/tools/generator-polygene/app/templates/RestAPIApplication/web.xml.tmpl ---------------------------------------------------------------------- diff --git a/tools/generator-polygene/app/templates/RestAPIApplication/web.xml.tmpl b/tools/generator-polygene/app/templates/RestAPIApplication/web.xml.tmpl index d650933..75075b2 100644 --- a/tools/generator-polygene/app/templates/RestAPIApplication/web.xml.tmpl +++ b/tools/generator-polygene/app/templates/RestAPIApplication/web.xml.tmpl @@ -23,18 +23,18 @@ version="2.5"> <display-name><%= polygene.name %></display-name> -<% if( polygene.hasFeature( "security" ) { %> +<% if( polygene.hasFeature( "security" )) { %> <listener> <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class> </listener> <% } %> -<% if( polygene.hasFeature( "security" ) { %> +<% if( polygene.hasFeature( "security" ) ) { %> <filter> <filter-name>ShiroFilter</filter-name> <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class> </filter> <% } %> -<% if( polygene.hasFeature( "security" ) { %> +<% if( polygene.hasFeature( "security" ) ) { %> <-- Filter all web requests. This filter mapping is typically declared before all others to ensure any other filters are secured as well: --> <filter-mapping>
