Author: ebourg
Date: Wed Aug  1 13:38:12 2018
New Revision: 1837237

URL: http://svn.apache.org/viewvc?rev=1837237&view=rev
Log:
Convert the message files from UTF-8 to ASCII at build time

Modified:
    tomcat/trunk/build.xml

Modified: tomcat/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1837237&r1=1837236&r2=1837237&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Wed Aug  1 13:38:12 2018
@@ -702,12 +702,18 @@
       <filterset refid="version.filters"/>
       <fileset dir="java">
         <include name="**/*.properties"/>
+        <exclude name="**/LocalStrings*.properties"/>
         <include name="**/*.dtd"/>
         <include name="**/*.tasks"/>
         <include name="**/*.xsd"/>
         <include name="**/*.xml"/>
       </fileset>
     </copy>
+    
+    <!-- Convert the message files from UTF-8 to ASCII. This can be removed
+    after upgrading to Java 9+ as the minimum JRE and specifying the encoding
+    when loading the ResourceBundles -->
+    <native2ascii src="java" dest="${tomcat.classes}" 
includes="**/LocalStrings*.properties" encoding="UTF-8"/>
 
   </target>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to