mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid excessive messaging
GitOrigin-RevId: 30ebc0215e773c2ebe2843a76208ccd830beb166
This commit is contained in:
committed by
intellij-monorepo-bot
parent
923670159d
commit
a211bb2988
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.compiler.progress
|
||||
|
||||
import com.intellij.build.BuildWorkspaceConfiguration
|
||||
@@ -83,7 +83,6 @@ class CompilerBuildViewTest : BaseCompilerTestCase() {
|
||||
Running 'before' tasks
|
||||
Checking sources
|
||||
Copying resources… [a]
|
||||
Updating dependency information… [a]
|
||||
Parsing java… [a]
|
||||
Writing classes… [a]
|
||||
Adding nullability assertions… [a]
|
||||
@@ -119,7 +118,6 @@ class CompilerBuildViewTest : BaseCompilerTestCase() {
|
||||
Running 'before' tasks
|
||||
Checking sources
|
||||
Copying resources… [a]
|
||||
Updating dependency information… [a]
|
||||
Parsing java… [a]
|
||||
Writing classes… [a]
|
||||
Adding nullability assertions… [a]
|
||||
|
||||
@@ -549,7 +549,9 @@ public final class JavaBuilderUtil {
|
||||
}
|
||||
|
||||
if (performIntegrate) {
|
||||
context.processMessage(new ProgressMessage(JpsBuildBundle.message("progress.message.updating.dependency.information.0", chunk.getPresentableShortName())));
|
||||
if (!Iterators.isEmpty(diffResult.getAffectedSources()) || !Iterators.isEmpty(diffResult.getDeletedNodes())) { // avoid excessive messaging
|
||||
context.processMessage(new ProgressMessage(JpsBuildBundle.message("progress.message.updating.dependency.information.0", chunk.getPresentableShortName())));
|
||||
}
|
||||
dependencyGraph.integrate(diffResult);
|
||||
}
|
||||
|
||||
|
||||
+6
-6
@@ -162,12 +162,7 @@ public final class LibraryDependenciesUpdater {
|
||||
}
|
||||
}
|
||||
else if (diffParams.isCalculateAffected()) {
|
||||
Iterable<NodeSource> affectedSources = diffResult.getAffectedSources();
|
||||
final String infoMessage = JpsBuildBundle.message("progress.message.dependency.analysis.found.0.affected.files", count(affectedSources));
|
||||
LOG.info(infoMessage);
|
||||
context.processMessage(new ProgressMessage(infoMessage));
|
||||
|
||||
markAffectedFilesDirty(context, map(affectedSources, ns -> pathMapper.toPath(ns)));
|
||||
markAffectedFilesDirty(context, map(diffResult.getAffectedSources(), ns -> pathMapper.toPath(ns)));
|
||||
}
|
||||
|
||||
graph.integrate(diffResult);
|
||||
@@ -184,6 +179,11 @@ public final class LibraryDependenciesUpdater {
|
||||
if (isEmpty(affectedFiles)) {
|
||||
return;
|
||||
}
|
||||
|
||||
final String infoMessage = JpsBuildBundle.message("progress.message.dependency.analysis.found.0.affected.files", count(affectedFiles));
|
||||
LOG.info(infoMessage);
|
||||
context.processMessage(new ProgressMessage(infoMessage));
|
||||
|
||||
ProjectDescriptor projectDescriptor = context.getProjectDescriptor();
|
||||
BuildRootIndex buildRootIndex = projectDescriptor.getBuildRootIndex();
|
||||
JavaModuleIndex moduleIndex = JpsJavaExtensionService.getInstance().getJavaModuleIndex(projectDescriptor.getProject());
|
||||
|
||||
Reference in New Issue
Block a user