mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-32148 Improve incremental compilation issue reporting for internal users
Propose to internal users to enable extended build logging by default after incremental issue was detected ^KTIJ-32148 Fixed GitOrigin-RevId: 42a4b45770ad204326165ae793effa762ff1ba34
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e0da3861d1
commit
49d693d7bc
@@ -150,6 +150,7 @@ import java.util.function.Supplier;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.intellij.ide.impl.ProjectUtil.getProjectForComponent;
|
||||
import static com.intellij.openapi.diagnostic.InMemoryHandler.IN_MEMORY_LOGGER_ADVANCED_SETTINGS_NAME;
|
||||
import static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope;
|
||||
|
||||
public final class BuildManager implements Disposable {
|
||||
@@ -1619,7 +1620,7 @@ public final class BuildManager implements Disposable {
|
||||
cmdLine.addPathParameter("-D" + PathManager.PROPERTY_PLUGINS_PATH + '=', FileUtil.toSystemIndependentName(PathManager.getPluginsPath()));
|
||||
|
||||
cmdLine.addPathParameter("-D" + GlobalOptions.LOG_DIR_OPTION + '=', FileUtil.toSystemIndependentName(getBuildLogDirectory().getAbsolutePath()));
|
||||
if (AdvancedSettings.getBoolean("compiler.inMemoryLogger")) {
|
||||
if (AdvancedSettings.getBoolean(IN_MEMORY_LOGGER_ADVANCED_SETTINGS_NAME)) {
|
||||
cmdLine.addParameter("-D" + GlobalOptions.USE_IN_MEMORY_FAILED_BUILD_LOGGER + "=true");
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ class InMemoryHandler(val outputPath: Path) : Handler() {
|
||||
companion object {
|
||||
const val FAILED_BUILD_LOG_FILE_NAME_PREFIX: String = "failed-build_";
|
||||
const val MAX_REPORT_NUMBER: Int = 3;
|
||||
const val IN_MEMORY_LOGGER_ADVANCED_SETTINGS_NAME: String = "compiler.inMemoryLogger"
|
||||
}
|
||||
var buildFailed: Boolean = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user