Re: Reloading velocity macros

Nathan Bubna <[email protected]> Fri, 8 Nov 2013 09:09:24 -0800
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <CAFyaDjExgOVRFRDzSH7qmfQ5sYYiT8uORQ6E3+gardCJT3wzdA@mail.gmail.com>
Unfortunately, this is a known bug:
https://issues.apache.org/jira/browse/VELOCITY-710


On Tue, Oct 29, 2013 at 11:57 PM, Greg Huber <[email protected]> wrote:
> 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