Skip to content

Commit

Permalink
Merge pull request sakaiproject#918 from buckett/SAK-14142
Browse files Browse the repository at this point in the history
SAK-14142 Allow Velocity tools to work when webapps aren't expanded.
  • Loading branch information
buckett committed Jul 30, 2015
2 parents d0f663c + 3f69337 commit da7e4ef
Show file tree
Hide file tree
Showing 38 changed files with 222 additions and 1,369 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
5 changes: 5 additions & 0 deletions login/login-render-engine-impl/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
</dependency>
<dependency>
<groupId>velocity-tools</groupId>
<artifactId>velocity-tools</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<build>
<resources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
#
# Tell Velocity which resource loader we are using
#
resource.loader=file, class
#
resource.loader = webapp, classpath

#
# File resource loader information
#
file.resource.loader.description=Velocity File Resource Loader
file.resource.loader.class=org.sakaiproject.login.impl.velocity.WebappLoader
file.resource.loader.cache=true
file.resource.loader.modificationCheckInterval=60
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

#
# Class resource loader information
Expand Down
Loading

0 comments on commit da7e4ef

Please sign in to comment.