That's correct, there is no reloading of templates with
ClasspathResourceLoader.  This is because there is no generic way to get the
date of a resource (which is ordinarily used to check if a template is
changed).

WILL

On 7/22/07, Philipp Leusmann <[EMAIL PROTECTED]> wrote:

Hi,

I am trying to use the ClasspathResourceLoader in my project. All my
templates are in WEB-INF/classes.
The problem is, that changes to the templates are not used without
restarting Tomcat, which makes it very difficult to develop.
Here is my velocity.properties:

resource.loader=class
class.resource.loader.description = Velocity Classpath Resource Loader
class.resource.loader.class =
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
class.resource.loader.cache = false
class.resource.loader.modificationCheckInterval = 5
velocimacro.library.autoreload=true
runtime.log.logsystem.class =
org.apache.velocity.runtime.log.Log4JLogChute

Is this known behaviour for the ClassPathResourceLoader? Or did I made a
mistake in the configuration? I tried using the FileResourceLoader
before, and it worked, but I didn“t like to specify absolute paths for
that.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

Reply via email to