LUCENE-10308: sort input files for ecj so that module-info.java comes first.

This commit is contained in:
Dawid Weiss 2021-12-18 21:17:56 +01:00
parent 7e1f3fef69
commit 1114cf2c25
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ allprojects {
srcDirs.collectMany { dir ->
project.fileTree(dir: dir, include: "**/*.java" ).files
}
// Try to sort all input files; a side-effect of this should be that module-info.java
// is placed first on the list, which works around ECJ bug:
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=569833
.sort()
.collect {file -> escapeFileName(file.absolutePath.toString())}.join("\n"), "UTF-8")
args += [ "-d", "none" ]