Use LF line endings in SQL generated files (elastic/x-pack-elasticsearch#26822) (elastic/x-pack-elasticsearch#2706)
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: 'SqlBase*.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`. Original commit: elastic/x-pack-elasticsearch@4396729e04
This commit is contained in:
parent
5239e49b75
commit
8675f6998b
|
@ -86,7 +86,7 @@ task regen {
|
|||
fileset(dir: outputPath, includes: 'SqlBase*.java')
|
||||
}
|
||||
// fix line endings
|
||||
ant.fixcrlf(srcdir: outputPath) {
|
||||
ant.fixcrlf(srcdir: outputPath, eol: 'lf') {
|
||||
patternset(includes: 'SqlBase*.java')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue