velocity.properties 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. # ----------------------------------------------------------------------------
  18. # R U N T I M E L O G
  19. # ----------------------------------------------------------------------------
  20. # ----------------------------------------------------------------------------
  21. # default LogChute to use: default: AvalonLogChute, Log4JLogChute, CommonsLogLogChute, ServletLogChute, JdkLogChute
  22. # ----------------------------------------------------------------------------
  23. runtime.log.logsystem.class = org.apache.velocity.runtime.log.AvalonLogChute,org.apache.velocity.runtime.log.Log4JLogChute,org.apache.velocity.runtime.log.CommonsLogLogChute,org.apache.velocity.runtime.log.ServletLogChute,org.apache.velocity.runtime.log.JdkLogChute
  24. # ---------------------------------------------------------------------------
  25. # This is the location of the Velocity Runtime log.
  26. # ----------------------------------------------------------------------------
  27. runtime.log = velocity.log
  28. # ----------------------------------------------------------------------------
  29. # This controls whether invalid references are logged.
  30. # ----------------------------------------------------------------------------
  31. runtime.log.invalid.references = true
  32. # ----------------------------------------------------------------------------
  33. # T E M P L A T E E N C O D I N G
  34. # ----------------------------------------------------------------------------
  35. input.encoding=GBK
  36. output.encoding=GBK
  37. # ----------------------------------------------------------------------------
  38. # F O R E A C H P R O P E R T I E S
  39. # ----------------------------------------------------------------------------
  40. # These properties control how the counter is accessed in the #foreach
  41. # directive. By default the reference $velocityCount and $velocityHasNext
  42. # will be available in the body of the #foreach directive.
  43. # The default starting value for $velocityCount is 1.
  44. # ----------------------------------------------------------------------------
  45. directive.foreach.counter.name = velocityCount
  46. directive.foreach.counter.initial.value = 0
  47. directive.foreach.maxloops = -1
  48. directive.foreach.iterator.name = velocityHasNext
  49. # ----------------------------------------------------------------------------
  50. # S E T P R O P E R T I E S
  51. # ----------------------------------------------------------------------------
  52. # These properties control the behavior of #set.
  53. # For compatibility, the default behavior is to disallow setting a reference
  54. # to null. This default may be changed in a future version.
  55. # ----------------------------------------------------------------------------
  56. directive.set.null.allowed = false
  57. # ----------------------------------------------------------------------------
  58. # I N C L U D E P R O P E R T I E S
  59. # ----------------------------------------------------------------------------
  60. # These are the properties that governed the way #include'd content
  61. # is governed.
  62. # ----------------------------------------------------------------------------
  63. directive.include.output.errormsg.start = <!-- include error :
  64. directive.include.output.errormsg.end = see error log -->
  65. # ----------------------------------------------------------------------------
  66. # P A R S E P R O P E R T I E S
  67. # ----------------------------------------------------------------------------
  68. directive.parse.max.depth = 10
  69. # ----------------------------------------------------------------------------
  70. # T E M P L A T E L O A D E R S
  71. # ----------------------------------------------------------------------------
  72. #
  73. #
  74. # ----------------------------------------------------------------------------
  75. resource.loader = file
  76. file.resource.loader.description = Velocity File Resource Loader
  77. file.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
  78. #file.resource.loader.path = /kc/vip-server/logs/tomcat
  79. file.resource.loader.cache = true
  80. file.resource.loader.modificationCheckInterval = 5
  81. # ----------------------------------------------------------------------------
  82. # VELOCIMACRO PROPERTIES
  83. # ----------------------------------------------------------------------------
  84. # global : name of default global library. It is expected to be in the regular
  85. # template path. You may remove it (either the file or this property) if
  86. # you wish with no harm.
  87. # ----------------------------------------------------------------------------
  88. # velocimacro.library = VM_global_library.vm
  89. velocimacro.permissions.allow.inline = true
  90. velocimacro.permissions.allow.inline.to.replace.global = false
  91. velocimacro.permissions.allow.inline.local.scope = false
  92. velocimacro.context.localscope = false
  93. velocimacro.max.depth = 20
  94. # ----------------------------------------------------------------------------
  95. # VELOCIMACRO STRICT MODE
  96. # ----------------------------------------------------------------------------
  97. # if true, will throw an exception for incorrect number
  98. # of arguments. false by default (for backwards compatibility)
  99. # but this option will eventually be removed and will always
  100. # act as if true
  101. # ----------------------------------------------------------------------------
  102. velocimacro.arguments.strict = false
  103. # ----------------------------------------------------------------------------
  104. # STRICT REFERENCE MODE
  105. # ----------------------------------------------------------------------------
  106. # if true, will throw a MethodInvocationException for references
  107. # that are not defined in the context, or have not been defined
  108. # with a #set directive. This setting will also throw an exception
  109. # if an attempt is made to call a non-existing property on an object
  110. # or if the object is null. When this property is true then property
  111. # 'directive.set.null.allowed' is also set to true.
  112. # ----------------------------------------------------------------------------
  113. runtime.references.strict = false
  114. # ----------------------------------------------------------------------------
  115. # INTERPOLATION
  116. # ----------------------------------------------------------------------------
  117. # turn off and on interpolation of references and directives in string
  118. # literals. ON by default :)
  119. # ----------------------------------------------------------------------------
  120. runtime.interpolate.string.literals = true
  121. # ----------------------------------------------------------------------------
  122. # RESOURCE MANAGEMENT
  123. # ----------------------------------------------------------------------------
  124. # Allows alternative ResourceManager and ResourceCache implementations
  125. # to be plugged in.
  126. # ----------------------------------------------------------------------------
  127. resource.manager.class = org.apache.velocity.runtime.resource.ResourceManagerImpl
  128. resource.manager.cache.class = org.apache.velocity.runtime.resource.ResourceCacheImpl
  129. # ----------------------------------------------------------------------------
  130. # PARSER POOL
  131. # ----------------------------------------------------------------------------
  132. # Selects a custom factory class for the parser pool. Must implement
  133. # ParserPool. parser.pool.size is used by the default implementation
  134. # ParserPoolImpl
  135. # ----------------------------------------------------------------------------
  136. parser.pool.class = org.apache.velocity.runtime.ParserPoolImpl
  137. parser.pool.size = 20
  138. # ----------------------------------------------------------------------------
  139. # EVENT HANDLER
  140. # ----------------------------------------------------------------------------
  141. # Allows alternative event handlers to be plugged in. Note that each
  142. # class property is actually a comma-separated list of classes (which will
  143. # be called in order).
  144. # ----------------------------------------------------------------------------
  145. # eventhandler.referenceinsertion.class =
  146. # eventhandler.nullset.class =
  147. # eventhandler.methodexception.class =
  148. # eventhandler.include.class =
  149. # ----------------------------------------------------------------------------
  150. # EVALUATE
  151. # ----------------------------------------------------------------------------
  152. # Evaluate VTL dynamically in template. Select a class for the Context
  153. # ----------------------------------------------------------------------------
  154. directive.evaluate.context.class = org.apache.velocity.VelocityContext
  155. # ----------------------------------------------------------------------------
  156. # PLUGGABLE INTROSPECTOR
  157. # ----------------------------------------------------------------------------
  158. # Allows alternative introspection and all that can of worms brings.
  159. # ----------------------------------------------------------------------------
  160. runtime.introspector.uberspect = org.apache.velocity.util.introspection.UberspectImpl
  161. # ----------------------------------------------------------------------------
  162. # SECURE INTROSPECTOR
  163. # ----------------------------------------------------------------------------
  164. # If selected, prohibits methods in certain classes and packages from being
  165. # accessed.
  166. # ----------------------------------------------------------------------------
  167. introspector.restrict.packages = java.lang.reflect
  168. # The two most dangerous classes
  169. introspector.restrict.classes = java.lang.ThreadLocal