Author: cbrisson
Date: Sun Mar 10 13:39:06 2019
New Revision: 1855152

URL: http://svn.apache.org/viewvc?rev=1855152&view=rev
Log:
[engine][VELOCITY-909] Rename input.encoding to resource.default_encoding

Modified:
    
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/DeprecatedRuntimeConstants.java
    
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
    
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties

Modified: 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/DeprecatedRuntimeConstants.java
URL: 
http://svn.apache.org/viewvc/velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/DeprecatedRuntimeConstants.java?rev=1855152&r1=1855151&r2=1855152&view=diff
==============================================================================
--- 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/DeprecatedRuntimeConstants.java
 (original)
+++ 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/DeprecatedRuntimeConstants.java
 Sun Mar 10 13:39:06 2019
@@ -123,6 +123,9 @@ public interface DeprecatedRuntimeConsta
      */
     String OLD_RESOURCE_LOADER_CHECK_INTERVAL = "modificationCheckInterval";
 
+    /** The default character encoding for the templates. Used by the parser 
in processing the input streams. */
+    String OLD_INPUT_ENCODING = "input.encoding";
+
     /**
      * The <code>eventhandler.referenceinsertion.class</code> property 
specifies a list of the
      * {@link org.apache.velocity.app.event.ReferenceInsertionEventHandler} 
implementations to use.

Modified: 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
URL: 
http://svn.apache.org/viewvc/velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java?rev=1855152&r1=1855151&r2=1855152&view=diff
==============================================================================
--- 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
 (original)
+++ 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
 Sun Mar 10 13:39:06 2019
@@ -211,6 +211,11 @@ public interface RuntimeConstants extend
      */
     String RESOURCE_LOADER_CHECK_INTERVAL = "modification_check_interval";
 
+    /** The default character encoding for the templates. Used by the parser 
in processing the input streams. */
+    String INPUT_ENCODING = "resource.default_encoding";
+
+    /** Default Encoding is UTF-8. */
+    String ENCODING_DEFAULT = "UTF-8";
 
     /*
      * ----------------------------------------------------------------------
@@ -335,12 +340,6 @@ public interface RuntimeConstants extend
     /** Switch for the interpolation facility for string literals. */
     String INTERPOLATE_STRINGLITERALS = "runtime.interpolate_string_literals";
 
-    /** The character encoding for the templates. Used by the parser in 
processing the input streams. */
-    String INPUT_ENCODING = "input.encoding";
-
-    /** Default Encoding is UTF-8. */
-    String ENCODING_DEFAULT = "UTF-8";
-
     /** Switch for ignoring nulls in math equations vs throwing exceptions. */
     String STRICT_MATH = "runtime.strict_math";
 

Modified: 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
URL: 
http://svn.apache.org/viewvc/velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties?rev=1855152&r1=1855151&r2=1855152&view=diff
==============================================================================
--- 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
 (original)
+++ 
velocity/engine/branches/VELOCITY-909/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
 Sun Mar 10 13:39:06 2019
@@ -22,12 +22,6 @@
 runtime.log.log_invalid_references = true
 
 # ----------------------------------------------------------------------------
-# T E M P L A T E  E N C O D I N G
-# ----------------------------------------------------------------------------
-
-input.encoding=UTF-8
-
-# ----------------------------------------------------------------------------
 # Strings interning
 # ----------------------------------------------------------------------------
 # Set to true to optimize memory, to false to optimize speed
@@ -59,8 +53,9 @@ directive.if.empty_check = true
 # is governed.
 # ----------------------------------------------------------------------------
 
-directive.include.output_errormsg_start = <!-- include error :
-directive.include.output_errormsg_end   =  see error log -->
+# deprecated: if/how errors are displayed is not the concern of the engine, 
which should throw in all cases
+#directive.include.output_errormsg_start = <!-- include error :
+#directive.include.output_errormsg_end   =  see error log -->
 
 # ----------------------------------------------------------------------------
 # P A R S E  P R O P E R T I E S
@@ -91,6 +86,8 @@ context.scope_control.foreach = true
 #
 # ----------------------------------------------------------------------------
 
+resource.default_encoding=UTF-8
+
 resource.loaders = file
 
 resource.loader.file.description = Velocity File Resource Loader


Reply via email to