You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2000/11/27 07:58:02 UTC

new properties behavior and new properties

There is new behavior of the Velocity engine with respect to 
properties, and I just wanted to note it to all, beause if I don't, I'll
forget.  John Castura will hopefully make nice docs regarding this.

First, the default properties will *always* be loaded by the Runtime, so
you don't have to construct full properties files if you just want to
change one or two of them.  That should make people happy. It certainly
made me happy.  The default properties set is such that when loaded,
Velocity will run correctly.  No other properties need to be set. 
Overriding them is your option.

Second, and it probably did it before, Velocity is nice and will search
for your properties file, usually velocity.properties in first the local
directory, and then in the classpath.  I didn't test this with servlets,
just the test app, but it should work.  

Finally, there are a few new properties :

runtime.log.error.stacktrace = false
runtime.log.warn.stacktrace = false
runtime.log.info.stacktrace = false

these three control our treasured stack traces in the log file for
error, warning and info messages, respectively.  The default is false
for all three, so if you really like them, and I can only think of on
person who does, then you have to turn them on explicitly.

Also :

runtime.log.reference.log_invalid = true

controls whether invalid references are logged.  The default is true,
because that's the current behavior and it's great for debugging, but it
will be nice to shut them off for production use.

geir

-- 
Geir Magnusson Jr.                               geirm@optonline.com
Dakota tribal wisdom: "when you discover you are riding a dead horse,
the best strategy is to dismount."