After some more testing it does reload, except it does not remove the old
macro names and methods. I guess it does not store where the macros
originated, so it appends new ones? I cannot remember the exact reason why
I started stopping & restarting, maybe I was changing the signature and it
was n
Greg,
On 1/4/17 11:40 AM, Greg Huber wrote:
>> Velocity version?
>
> The latest version ie 2.0.
>
>> When you say you "shut down the container (tomcat)", >can you be more
> specific? Do you bounce the >application, or do you >terminate Tomcat and
> the JVM, >etc.?
>
> Terminate tomcat shutdown.
.it does not remove macros names, will keep this in mind next time I do
template work and work out exactly why I need to restart (if I still have
to do it at all).
Cheers Greg
On 4 January 2017 at 17:34, Michael Osipov wrote:
> Am 2017-01-04 um 14:43 schrieb Greg Huber:
>
>> The was one iss
Sorry, I have looked at this again and it does now reload correctly with
the new macros without the restart. Please ignore my previous emails!!
Cheers Greg.
On 4 January 2017 at 17:34, Michael Osipov wrote:
> Am 2017-01-04 um 14:43 schrieb Greg Huber:
>
>> The was one issue that has been aroun
If someone could point me in the right direction on where it reloads the
macro names in the code, I could have a look myself at fixing it.
Cheer Greg
On 4 January 2017 at 17:34, Michael Osipov wrote:
> Am 2017-01-04 um 14:43 schrieb Greg Huber:
>
>> The was one issue that has been around for ag
>This could be your issue: http://stackoverflow.com/a/8656527/696632
It picks up the changes to the contents of the template macros ok, so its
unlikely to be the tomcat cache. It won't pick up the new macros. I
though it might be a list/array that stores the names that needs to be
cleared/reset
Am 2017-01-04 um 14:43 schrieb Greg Huber:
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 p
>Velocity version?
The latest version ie 2.0.
>When you say you "shut down the container (tomcat)", >can you be more
specific? Do you bounce the >application, or do you >terminate Tomcat and
the JVM, >etc.?
Terminate tomcat shutdown.sh and then restart it.
>Did you write your own WebappResource
Greg,
On 1/4/17 8:43 AM, Greg Huber wrote:
> 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
>
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 m
10 matches
Mail list logo