source: gs3-extensions/gsdl-as/trunk/web/velocity.properties

Last change on this file was 8630, checked in by schweer, 19 years ago

restructured servlet to use velocity

  • Property svn:keywords set to Author Date Id Revision
File size: 7.2 KB
Line 
1#----------------------------------------------------------------------------
2# These are the default properties for the
3# Velocity Runtime. These values are used when
4# Runtime.init() is called, and when Runtime.init(properties)
5# fails to find the specificed properties file.
6#----------------------------------------------------------------------------
7
8#----------------------------------------------------------------------------
9# R U N T I M E L O G
10#----------------------------------------------------------------------------
11
12#----------------------------------------------------------------------------
13# default LogSystem to use: default: AvalonLogSystem
14#----------------------------------------------------------------------------
15
16# runtime.log.logsystem.class = org.apache.velocity.runtime.log.AvalonLogSystem,org.apache.velocity.runtime.log.SimpleLog4JLogSystem
17
18runtime.log.logsystem.class = org.apache.velocity.runtime.log.SimpleLog4JLogSystem
19
20#---------------------------------------------------------------------------
21# This is the location of the Velocity Runtime log.
22#----------------------------------------------------------------------------
23
24runtime.log = ../logs/velocity.log
25
26#----------------------------------------------------------------------------
27# This controls if Runtime.error(), info() and warn() messages include the
28# whole stack trace. The last property controls whether invalid references
29# are logged.
30#----------------------------------------------------------------------------
31
32runtime.log.error.stacktrace = true
33runtime.log.warn.stacktrace = false
34runtime.log.info.stacktrace = false
35runtime.log.invalid.reference = true
36
37#----------------------------------------------------------------------------
38# Configuration for the Log4JLogSystem.
39# You must define the runtime.log.logsystem.class property to be:
40# org.apache.velocity.runtime.log.Log4JLogSystem
41#
42# You must also include Log4J's .jar files into your classpath. They are
43# included with the Velocity distribution in the build/lib directory.
44#
45# There are several different options that you can configure.
46# Uncomment the ones that you want and also define their settings.
47#----------------------------------------------------------------------------
48#runtime.log.logsystem.log4j.pattern=%d - %m%n
49#runtime.log.logsystem.log4j.file.size=100000
50#runtime.log.logsystem.log4j.file.backups=1
51#runtime.log.logsystem.log4j.syslogd.host=my.syslog.server.com
52#runtime.log.logsystem.log4j.syslogd.facility=LOG_DAEMON
53#runtime.log.logsystem.log4j.remote.host=my.remote.server.com
54#runtime.log.logsystem.log4j.remote.port=1099
55#runtime.log.logsystem.log4j.email.server=localhost
56#runtime.log.logsystem.log4j.email.from=root@localhost
57#runtime.log.logsystem.log4j.email.to=root@localhost
58#runtime.log.logsystem.log4j.email.subject=Velocity Error Report
59#runtime.log.logsystem.log4j.email.buffer.size=512
60
61#----------------------------------------------------------------------------
62# T E M P L A T E E N C O D I N G
63#----------------------------------------------------------------------------
64
65input.encoding=ISO-8859-1
66output.encoding=ISO-8859-1
67
68#----------------------------------------------------------------------------
69# F O R E A C H P R O P E R T I E S
70#----------------------------------------------------------------------------
71# These properties control how the counter is accessed in the #foreach
72# directive. By default the reference $velocityCount will be available
73# in the body of the #foreach directive. The default starting value
74# for this reference is 1.
75#----------------------------------------------------------------------------
76
77directive.foreach.counter.name = velocityCount
78directive.foreach.counter.initial.value = 1
79
80#----------------------------------------------------------------------------
81# I N C L U D E P R O P E R T I E S
82#----------------------------------------------------------------------------
83# These are the properties that governed the way #include'd content
84# is governed.
85#----------------------------------------------------------------------------
86
87directive.include.output.errormsg.start = <!-- include error :
88directive.include.output.errormsg.end = see error log -->
89
90#----------------------------------------------------------------------------
91# P A R S E P R O P E R T I E S
92#----------------------------------------------------------------------------
93
94directive.parse.max.depth = 10
95
96#----------------------------------------------------------------------------
97# T E M P L A T E L O A D E R S
98#----------------------------------------------------------------------------
99#
100#
101#----------------------------------------------------------------------------
102
103# resource.loader = file
104#
105# file.resource.loader.description = Velocity File Resource Loader
106# file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
107# file.resource.loader.path = .
108# file.resource.loader.cache = false
109# file.resource.loader.modificationCheckInterval = 2
110resource.loader = class
111class.resource.loader.description = Velocity Class Resource Loader
112class.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
113
114#----------------------------------------------------------------------------
115# VELOCIMACRO PROPERTIES
116#----------------------------------------------------------------------------
117# global : name of default global library. It is expected to be in the regular
118# template path. You may remove it (either the file or this property) if
119# you wish with no harm.
120#----------------------------------------------------------------------------
121velocimacro.library = VM_global_library.vm
122
123velocimacro.permissions.allow.inline = true
124velocimacro.permissions.allow.inline.to.replace.global = false
125velocimacro.permissions.allow.inline.local.scope = false
126
127velocimacro.context.localscope = false
128
129#----------------------------------------------------------------------------
130# INTERPOLATION
131#----------------------------------------------------------------------------
132# turn off and on interpolation of references and directives in string
133# literals. ON by default :)
134#----------------------------------------------------------------------------
135runtime.interpolate.string.literals = true
136
137
138#----------------------------------------------------------------------------
139# RESOURCE MANAGEMENT
140#----------------------------------------------------------------------------
141# Allows alternative ResourceManager and ResourceCache implementations
142# to be plugged in.
143#----------------------------------------------------------------------------
144resource.manager.class = org.apache.velocity.runtime.resource.ResourceManagerImpl
145resource.manager.cache.class = org.apache.velocity.runtime.resource.ResourceCacheImpl
146
147#----------------------------------------------------------------------------
148# PLUGGABLE INTROSPECTOR
149#----------------------------------------------------------------------------
150# Allows alternative introspection and all that can of worms brings
151#----------------------------------------------------------------------------
152
153runtime.introspector.uberspect = org.apache.velocity.util.introspection.UberspectImpl
154
155
Note: See TracBrowser for help on using the repository browser.