mirror of https://github.com/apache/lucene.git
LUCENE-10308: sort input files for ecj so that module-info.java comes first.
This commit is contained in:
parent
d42db56bab
commit
2a44ff532e
|
@ -73,6 +73,10 @@ allprojects {
|
||||||
srcDirs.collectMany { dir ->
|
srcDirs.collectMany { dir ->
|
||||||
project.fileTree(dir: dir, include: "**/*.java" ).files
|
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")
|
.collect {file -> escapeFileName(file.absolutePath.toString())}.join("\n"), "UTF-8")
|
||||||
|
|
||||||
args += [ "-d", "none" ]
|
args += [ "-d", "none" ]
|
||||||
|
|
Loading…
Reference in New Issue