Skip to content

Apache Lucene open-source search software

this task was corrupting all files to platform-encoding in the .zip distribution

Robert Muir24806405bfac
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 80dbcce6368..1ef75b62d3f 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -717,7 +717,7 @@
javacchome="${javacc.home}"
jdkversion="${javac.source}"
/>
- <fixcrlf srcdir="@{outputDir}" includes="*.java">
+ <fixcrlf srcdir="@{outputDir}" includes="*.java" encoding="UTF-8">
<containsregexp expression="Generated.*By.*JavaCC"/>
</fixcrlf>
</sequential>
diff --git a/solr/build.xml b/solr/build.xml
index df2fadcce35..616cb9a528c 100644
--- a/solr/build.xml
+++ b/solr/build.xml
@@ -807,6 +807,7 @@
<untar src="${dest}/${fullnamever}-src.tar" dest="${dest}"/>
<fixcrlf srcdir="${dest}/${fullnamever}"
+ encoding="UTF-8"
eol="crlf"
includes="**/*.txt **/*.xml **/*.java **/*.html **/*.csv **/*.css **/*.properties **/*.jsp **/*.xsl **/*.py **/*.rb **/*.js **/*.json **/*.pl"
/>
@@ -866,6 +867,7 @@
<untar src="${dest}/${fullnamever}.tar" dest="${dest}"/>
<fixcrlf srcdir="${dest}/${fullnamever}"
+ encoding="UTF-8"
eol="crlf"
includes="**/*.txt **/*.xml **/*.java **/*.html **/*.csv **/*.css **/*.properties **/*.jsp **/*.xsl **/*.py **/*.rb **/*.js **/*.json **/*.pl"
/>