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
#----------------------------------------------------------------------------
9
#----------------------------------------------------------------------------
11
#----------------------------------------------------------------------------
12
# Velocity uses the Servlet APIs logging facilites.
14
#----------------------------------------------------------------------------
15
# This controls if Runtime.error(), info() and warn() messages include the
16
# whole stack trace. The last property controls whether invalid references
18
#----------------------------------------------------------------------------
20
runtime.log.error.stacktrace = false
21
runtime.log.warn.stacktrace = false
22
runtime.log.info.stacktrace = false
23
runtime.log.invalid.reference = true
26
#----------------------------------------------------------------------------
27
# T E M P L A T E E N C O D I N G
28
#----------------------------------------------------------------------------
30
input.encoding=shift_jis
33
#----------------------------------------------------------------------------
34
# T E M P L A T E L O A D E R S
35
#----------------------------------------------------------------------------
37
resource.loader = file
39
file.resource.loader.description = Velocity File Resource Loader
40
file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
41
file.resource.loader.path = ../webapps/bookstore
42
file.resource.loader.cache = true
43
file.resource.loader.modificationCheckInterval = 2
45
#----------------------------------------------------------------------------
46
# F O R E A C H P R O P E R T I E S
47
#----------------------------------------------------------------------------
48
# These properties control how the counter is accessed in the #foreach
49
# directive. By default the reference $velocityCount will be available
50
# in the body of the #foreach directive. The default starting value
51
# for this reference is 1.
52
#----------------------------------------------------------------------------
54
directive.foreach.counter.name = VelocityCount
55
directive.foreach.counter.initial.value = 1
58
#----------------------------------------------------------------------------
59
# I N C L U D E P R O P E R T I E S
60
#----------------------------------------------------------------------------
61
# These are the properties that governed the way #include'd content
63
#----------------------------------------------------------------------------
65
directive.include.output.errormsg.start = <!-- include error :
66
directive.include.output.errormsg.end = see error log -->
69
#----------------------------------------------------------------------------
70
# P A R S E P R O P E R T I E S
71
#----------------------------------------------------------------------------
73
directive.parse.max.depth = 10
76
#----------------------------------------------------------------------------
77
# VELOCIMACRO PROPERTIES
78
#----------------------------------------------------------------------------
79
# global : name of default global library. It is expected to be in the regular
80
# template path. You may remove it (either the file or this property) if
81
# you wish with no harm.
82
#----------------------------------------------------------------------------
83
velocimacro.library = /WEB-INF/VM_global_library.vm
85
velocimacro.permissions.allow.inline = true
86
velocimacro.permissions.allow.inline.to.replace.global = false
87
velocimacro.permissions.allow.inline.local.scope = false
89
velocimacro.context.localscope = false
92
#----------------------------------------------------------------------------
94
#----------------------------------------------------------------------------
95
# turn off and on interpolation of references and directives in string
96
# literals. ON by default :)
97
#----------------------------------------------------------------------------
98
runtime.interpolate.string.literals = true
101
#----------------------------------------------------------------------------
102
# RESOURCE MANAGEMENT
103
#----------------------------------------------------------------------------
104
# Allows alternative ResourceManager and ResourceCache implementations
106
#----------------------------------------------------------------------------
107
resource.manager.class = org.apache.velocity.runtime.resource.ResourceManagerImpl
108
resource.manager.cache.class = org.apache.velocity.runtime.resource.ResourceCacheImpl