velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: velocimacro.permissions.allow.inline.local.scope (again)
Date Fri, 08 Mar 2002 03:12:22 GMT
Are you sure those properties are getting read?

I copied the props right out of your email, and put them into a properties
file for a test program, and my log says

Thu Mar 07 22:10:03 EST 2002   [info] Velocimacro : allowInline = true : VMs
can be defined inline in templates
Thu Mar 07 22:10:03 EST 2002   [info] Velocimacro : allowInlineToOverride =
true : VMs defined inline may replace previous VM definitions
Thu Mar 07 22:10:03 EST 2002   [info] Velocimacro : allowInlineLocal = true
: VMs defined inline will be local to their defining template only.
Thu Mar 07 22:10:03 EST 2002   [info] Velocimacro : messages on  : VM system
will output logging messages
Thu Mar 07 22:10:03 EST 2002   [info] Velocimacro : autoload on  : VM system
will automatically reload global library macros
Thu Mar 07 22:10:03 EST 2002   [info] Velocimacro : initialization complete.


With the current CVS.

For grins, get last night's snapshot of the CVS and see if this was
something fixed in 1.3

geir



On 3/7/02 10:02 PM, "Kelvin Tan" <kelvin@relevanz.com> wrote:

> Hi,
> 
> I'm using Velocity v1.2 (velocity-dep-1.2.jar if it matters).
> 
> In my velocity.properties file, I've set the following
> velocimacro.library.autoreload = true
> velocimacro.context.localscope = false
> velocimacro.permissions.allow.inline.local.scope = true
> velocimacro.permissions.allow.inline.to.replace.global = true
> 
> However, velocity.log produces
> 
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocimacro : allowInline = true
> : VMs can be defined inline in templates
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocimacro :
> allowInlineToOverride = true : VMs defined inline may replace previous VM
> definitions
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocimacro : allowInlineLocal =
> false : VMs defined inline will be  global in scope if allowed.
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocimacro : messages on  : VM
> system will output logging messages
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocimacro : autoload on  : VM
> system will automatically reload global library macros
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocimacro : initialization
> complete.
> Fri Mar 08 10:50:11 GMT+08:00 2002   [info] Velocity successfully started.
> tarted.
> 
> Why is allowInlineLocal=false when I declared it to be true? I checked
> velocity.properties in org/apache/velocity/runtime/defaults and I'm pretty
> sure I got the keys right. Is it just the log file which is incorrect or is
> the property not being set? Any clue anyone?
> 
> Regards,
> Kelvin Tan
> 
> Relevanz Pte Ltd
> http://www.relevanz.com
> 
> 180B Bencoolen St.
> The Bencoolen, #04-01
> S(189648)
> 
> Tel: 238 6229
> Fax: 337 4417
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:velocity-user-help@jakarta.apache.org>
> 

-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
"Now what do we do?"


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


Mime
View raw message