Skip to content

Commit

Permalink
SAK-14142 Velocity Loading Template from Webapps
Browse files Browse the repository at this point in the history
Rather than requiring that WARs be unpacked into the filesystem, this allows the templates to be loaded directly from the webapp. We use the webapp loaded from the velocity tools project.
  • Loading branch information
buckett committed Jul 25, 2015
1 parent 8e3b150 commit 65d15f3
Show file tree
Hide file tree
Showing 24 changed files with 116 additions and 141 deletions.
11 changes: 5 additions & 6 deletions access/access-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions access/web-tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions alias/alias-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions archive/archive-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions assignment/assignment-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions authz/authz-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions basiclti/basiclti-tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions calendar/calendar-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions citations/citations-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions content/content-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions mailarchive/mailarchive-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions memory/memory-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions message/message-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions presence/presence-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions rights/rights-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions site-manage/site-manage-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions site/site-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
11 changes: 5 additions & 6 deletions user/user-tool/tool/src/webapp/velocity.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ directive.parse.max.depth = 10
#
#----------------------------------------------------------------------------

resource.loader = file, classpath
resource.loader = webapp, classpath

file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = .,WebRoot
file.resource.loader.cache = true
file.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.description = Velocity Webapp Resource Loader
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.modificationCheckInterval = 0
webapp.resource.loader.cachingOn = true

classpath.resource.loader.description = Velocity Classpath Resource Loader
classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Expand Down
Loading

0 comments on commit 65d15f3

Please sign in to comment.