Skip to content

Commit 3898919

Browse files
authored
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`.
1 parent b57cb83 commit 3898919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/lang-painless/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ task regen {
146146
fileset(dir: outputPath, includes: 'Painless*.java')
147147
}
148148
// fix line endings
149-
ant.fixcrlf(srcdir: outputPath) {
149+
ant.fixcrlf(srcdir: outputPath, eol: 'lf') {
150150
patternset(includes: 'Painless*.java')
151151
}
152152
}

0 commit comments

Comments
 (0)