mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] don't override user options
especially important for not yet supported language levels GitOrigin-RevId: 6274806e3ee49092ee71849f3a8aba13c63d9787
This commit is contained in:
committed by
intellij-monorepo-bot
parent
87120a038c
commit
8e5eb0ca25
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.jps.incremental.java;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
@@ -1038,7 +1038,7 @@ public final class JavaBuilder extends ModuleLevelBuilder {
|
||||
}
|
||||
|
||||
// using older -source, -target and -bootclasspath options
|
||||
if (languageLevel > 0) {
|
||||
if (languageLevel > 0 && !options.contains(SOURCE_OPTION)) {
|
||||
options.add(SOURCE_OPTION);
|
||||
options.add(complianceOption(languageLevel));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user