This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 925527b436586477d9231172dc6542b21b8dd537
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jan 24 11:13:33 2022 +0000

    Reproducible builds: text files in JARs
---
 build.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/build.xml b/build.xml
index 1f1944c..97c8dc2 100644
--- a/build.xml
+++ b/build.xml
@@ -976,6 +976,16 @@
     when loading the ResourceBundles -->
     <native2ascii src="java" dest="${tomcat.classes}" 
includes="**/LocalStrings.properties" encoding="UTF-8"/>
     <native2ascii src="java" dest="${tomcat.i18n}" 
includes="**/LocalStrings_*.properties" encoding="UTF-8"/>
+
+    <!-- Ensure consistent line-endings for reproducible builds -->
+    <fixcrlf srcdir="${tomcat.classes}" eol="lf"
+        encoding="UTF-8" fixlast="false" >
+      <patternset refid="text.files" />
+    </fixcrlf>
+    <fixcrlf srcdir="${tomcat.i18n}" eol="lf"
+        encoding="UTF-8" fixlast="false" >
+      <patternset refid="text.files" />
+    </fixcrlf>
   </target>
 
   <target name="build-manifests" unless="manifests.uptodate"

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

Reply via email to