The was one issue that has been around for ages, and I am not sure if it is
possible to fix it.

If I have added a new macro into a velocity template file loaded via a
resource loader, I have to shut down the container (tomcat) and restart for
it to be picked up.  I will allow the contents of the macro to be changed
but not a new macro.  I did try to see if I could fix it but without much
success.

my velocity.properties :
..
webapp.resource.loader.description=Webapp Resource Loader
webapp.resource.loader.class=rendering.velocity.WebappResourceLoader
webapp.resource.loader.cache=true
webapp.resource.loader.path=/WEB-INF/velocity,/WEB-INF/velocity/templates,/WEB-INF/velocity/templates/feeds,/WEB-INF/velocity/templates/emails
...

If you are now familiar with the code you might be in a better position to
see why I have to shut down for it to be picked up.

Cheers Greg

Reply via email to