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 |
|
---|
18 | runtime.log.logsystem.class = org.apache.velocity.runtime.log.SimpleLog4JLogSystem
|
---|
19 |
|
---|
20 | #---------------------------------------------------------------------------
|
---|
21 | # This is the location of the Velocity Runtime log.
|
---|
22 | #----------------------------------------------------------------------------
|
---|
23 |
|
---|
24 | runtime.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 |
|
---|
32 | runtime.log.error.stacktrace = true
|
---|
33 | runtime.log.warn.stacktrace = false
|
---|
34 | runtime.log.info.stacktrace = false
|
---|
35 | runtime.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 |
|
---|
65 | input.encoding=ISO-8859-1
|
---|
66 | output.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 |
|
---|
77 | directive.foreach.counter.name = velocityCount
|
---|
78 | directive.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 |
|
---|
87 | directive.include.output.errormsg.start = <!-- include error :
|
---|
88 | directive.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 |
|
---|
94 | directive.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
|
---|
110 | resource.loader = class
|
---|
111 | class.resource.loader.description = Velocity Class Resource Loader
|
---|
112 | class.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 | #----------------------------------------------------------------------------
|
---|
121 | velocimacro.library = VM_global_library.vm
|
---|
122 |
|
---|
123 | velocimacro.permissions.allow.inline = true
|
---|
124 | velocimacro.permissions.allow.inline.to.replace.global = false
|
---|
125 | velocimacro.permissions.allow.inline.local.scope = false
|
---|
126 |
|
---|
127 | velocimacro.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 | #----------------------------------------------------------------------------
|
---|
135 | runtime.interpolate.string.literals = true
|
---|
136 |
|
---|
137 |
|
---|
138 | #----------------------------------------------------------------------------
|
---|
139 | # RESOURCE MANAGEMENT
|
---|
140 | #----------------------------------------------------------------------------
|
---|
141 | # Allows alternative ResourceManager and ResourceCache implementations
|
---|
142 | # to be plugged in.
|
---|
143 | #----------------------------------------------------------------------------
|
---|
144 | resource.manager.class = org.apache.velocity.runtime.resource.ResourceManagerImpl
|
---|
145 | resource.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 |
|
---|
153 | runtime.introspector.uberspect = org.apache.velocity.util.introspection.UberspectImpl
|
---|
154 |
|
---|
155 |
|
---|