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`.
This commit is contained in:
Nik Everett 2017-10-06 16:44:03 -04:00 committed by GitHub
parent b57cb83567
commit 38989191e7
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ task regen {
fileset(dir: outputPath, includes: 'Painless*.java') fileset(dir: outputPath, includes: 'Painless*.java')
} }
// fix line endings // fix line endings
ant.fixcrlf(srcdir: outputPath) { ant.fixcrlf(srcdir: outputPath, eol: 'lf') {
patternset(includes: 'Painless*.java') patternset(includes: 'Painless*.java')
} }
} }