You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by John <jc...@gmail.com> on 2007/10/12 17:54:08 UTC
Velocity template reloading question
What happens if your velocity properties file has
"file.resource.loader.cache = true", but is missing the
"file.resource.loader.modificationCheckInterval" property? What value
does that property default to?
I checked the documentation, and I know it says when you set that
value to <= 0, you disable checking. However I couldn't find out the
default value when NO value was set.
Regards
John
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: Velocity template reloading question
Posted by John <jc...@gmail.com>.
I suspected as much. Much appreciated Nathan.
John
On 10/12/07, Nathan Bubna <nb...@gmail.com> wrote:
> 2
>
> http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/ResourceLoader.java?revision=481285&view=markup
>
> On 10/12/07, John <jc...@gmail.com> wrote:
> > What happens if your velocity properties file has
> > "file.resource.loader.cache = true", but is missing the
> > "file.resource.loader.modificationCheckInterval" property? What value
> > does that property default to?
> >
> > I checked the documentation, and I know it says when you set that
> > value to <= 0, you disable checking. However I couldn't find out the
> > default value when NO value was set.
> >
> > Regards
> > John
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> > For additional commands, e-mail: user-help@velocity.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: Velocity template reloading question
Posted by Nathan Bubna <nb...@gmail.com>.
2
http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/ResourceLoader.java?revision=481285&view=markup
On 10/12/07, John <jc...@gmail.com> wrote:
> What happens if your velocity properties file has
> "file.resource.loader.cache = true", but is missing the
> "file.resource.loader.modificationCheckInterval" property? What value
> does that property default to?
>
> I checked the documentation, and I know it says when you set that
> value to <= 0, you disable checking. However I couldn't find out the
> default value when NO value was set.
>
> Regards
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: Velocity template reloading question
Posted by mailmur <ma...@yahoo.com>.
Subversion web access:
http://svn.apache.org/repos/asf/velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/ResourceLoader.java
well, default value is "2", but then it is not :-)
Introducing a variable uses a value "2", but
commonInit() method overrides the default value to
"0". Default value is used used property is missing or
invalid numeric format.
--- John <jc...@gmail.com> wrote:
> What happens if your velocity properties file has
> "file.resource.loader.cache = true", but is missing
> the "file.resource.loader.modificationCheckInterval"
> property? What value does that property default to?
>
> I checked the documentation, and I know it says when
> you set that value to <= 0, you disable checking.
However I couldn't find out the default value when NO
value was set.
>
> Regards
> John
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@velocity.apache.org
> For additional commands, e-mail:
> user-help@velocity.apache.org
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org