You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Greg Huber <gr...@gmail.com> on 2013/10/30 07:57:50 UTC

Reloading velocity macros

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

Re: Reloading velocity macros

Posted by Nathan Bubna <nb...@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 <gr...@gmail.com> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org