Reloading velocity macros

Greg Huber <[email protected]> Wed, 30 Oct 2013 06:57:50 +0000
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <CAJi=3dWSL0AKTTO9pEOUSC20JARKmC9cFt=J1rEzo_5QhrPnYA@mail.gmail.com>
Hello,

I am using the reloading macros in a tomcat environment, which is working
great, but when I add a new macro I seem to have to restart the container.
Is this correct or am I missing something?

here are my settings:

velocityProps.setProperty("class.resource.loader.cache", "false");
velocityProps.setProperty("webapp.resource.loader.cache","false");
velocityProps.setProperty("webapp.resource.loader.modificationCheckInterval",
"2");
velocityProps.setProperty("velocimacro.library.autoreload", "true");

in velocity.properties

webapp.resource.loader.path=WEB-INF/velocity/macros.vm


Cheers Greg