mirror of https://github.com/apache/lucene.git
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…
Reference in New Issue