Hi Florin,
macro.vm will override VM_global_library.vm:
http://click.sourceforge.net/docs/click-api/net/sf/click/service/VelocityTemplateService.html
If you want to use VM_global_library.vm you'll need to remove macro.vm
from the webapp. However I would just go with macro.vm as its more
intuitive.
That said it looks like we have a bug with global macro reloading.
I've sync'd with the latest Velocity Tools resource loader and it
solves the issue.
The latest version of the resource loader is here:
http://click.svn.sourceforge.net/viewvc/click/trunk/click/framework/src/org/apache/velocity/tools/view/servlet/WebappLoader.java?revision=3582
Thanks.
bob
florin.g wrote:
I've spent a couple of hours trying to get it work and also looked online
with no results.
I am running Click 1.5 on jetty6. The 'webapp/click/VM_global_library.vm' is
not being read no matter what. What works is the 'webapp/macro.vm' file. But
it does not reload even if I use my own velocity.properties file with the
following configuration:
#velocimacro.library=/macro.vm
velocimacro.library.autoreload = true
class.resource.loader.cache = false
#class.resource.loader.modificationCheckInterval = 1
file.resource.loader.cache = false
#file.resource.loader.modificationCheckInterval = 1
The velocity.properties in located in WEB-INF/. It does not have any other
items.
Thanks for any clues.
Florin