mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 05:19:17 +00:00
GITHUB#12655: javac options via -J only when the compiler is in forked mode.
This commit is contained in:
parent
a8fba38f16
commit
2e12a35c87
@ -57,8 +57,8 @@ allprojects {
|
||||
// are not part of up-to-date checks but these are internal JVM flags so we
|
||||
// don't care.
|
||||
//
|
||||
// Pass VM options via -J only with a custom javaHome AND when java toolchains are not used.
|
||||
if (task.options.forkOptions.javaHome != null && task.javaCompiler.getOrNull() == null) {
|
||||
// Pass VM options via -J when a custom javaHome is used and we're in fork mode.
|
||||
if (task.options.fork && task.options.forkOptions.javaHome != null) {
|
||||
return vmOpts.collect {"-J" + it}
|
||||
} else {
|
||||
return vmOpts
|
||||
|
Loading…
x
Reference in New Issue
Block a user