From 38989191e7367fde8997b1e55d835fa207fbf803 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Fri, 6 Oct 2017 16:44:03 -0400 Subject: [PATCH] Use LF line endings in Painless generated files (#26822) Right now if you run `gradle regen` on Windows you'll get `CRLF` line endings on all the ANTLR generated files because we run ``` ant.fixcrlf(srcdir: outputPath) { patternset(includes: 'Painless*.java') } ``` The docs for fixcrlf say that the default line endings that it corrects to is based on the OS: https://ant.apache.org/manual/Tasks/fixcrlf.html This change locks it to `LF`. --- modules/lang-painless/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang-painless/build.gradle b/modules/lang-painless/build.gradle index dddc98ae138..bc8a118ba1d 100644 --- a/modules/lang-painless/build.gradle +++ b/modules/lang-painless/build.gradle @@ -146,7 +146,7 @@ task regen { fileset(dir: outputPath, includes: 'Painless*.java') } // fix line endings - ant.fixcrlf(srcdir: outputPath) { + ant.fixcrlf(srcdir: outputPath, eol: 'lf') { patternset(includes: 'Painless*.java') } }