Search in sources :

Example 6 with IdeaLogScope

use of com.google.idea.blaze.base.scope.scopes.IdeaLogScope in project intellij by bazelbuild.

the class BlazeSyncTask method run.

@Override
public void run(final ProgressIndicator indicator) {
    Scope.root((BlazeContext context) -> {
        context.push(new ExperimentScope());
        if (showPerformanceWarnings) {
            context.push(new PerformanceWarningScope());
        }
        context.push(new ProgressIndicatorScope(indicator));
        if (!syncParams.backgroundSync) {
            context.push(new BlazeConsoleScope.Builder(project, indicator).setPopupBehavior(BlazeUserSettings.getInstance().getShowBlazeConsoleOnSync()).addConsoleFilters(new IssueOutputFilter(project, workspaceRoot, BlazeInvocationContext.Sync, true)).build()).push(new IssuesScope(project, true)).push(new IdeaLogScope()).push(new NotificationScope(project, "Sync", "Sync project", "Sync successful", "Sync failed"));
        }
        context.output(new StatusOutput(String.format("Syncing project: %s...", syncParams)));
        syncProject(context);
    });
}
Also used : PerformanceWarningScope(com.google.idea.blaze.base.scope.scopes.PerformanceWarningScope) IdeaLogScope(com.google.idea.blaze.base.scope.scopes.IdeaLogScope) BlazeContext(com.google.idea.blaze.base.scope.BlazeContext) BlazeConsoleScope(com.google.idea.blaze.base.scope.scopes.BlazeConsoleScope) IssueOutputFilter(com.google.idea.blaze.base.issueparser.IssueOutputFilter) ExperimentScope(com.google.idea.blaze.base.experiments.ExperimentScope) IssuesScope(com.google.idea.blaze.base.scope.scopes.IssuesScope) ProgressIndicatorScope(com.google.idea.blaze.base.scope.scopes.ProgressIndicatorScope) NotificationScope(com.google.idea.blaze.base.scope.scopes.NotificationScope) StatusOutput(com.google.idea.blaze.base.scope.output.StatusOutput)

Aggregations

IdeaLogScope (com.google.idea.blaze.base.scope.scopes.IdeaLogScope)6 IssuesScope (com.google.idea.blaze.base.scope.scopes.IssuesScope)6 ExperimentScope (com.google.idea.blaze.base.experiments.ExperimentScope)5 IssueOutputFilter (com.google.idea.blaze.base.issueparser.IssueOutputFilter)5 BlazeContext (com.google.idea.blaze.base.scope.BlazeContext)4 WorkspaceRoot (com.google.idea.blaze.base.model.primitives.WorkspaceRoot)3 BlazeConsoleScope (com.google.idea.blaze.base.scope.scopes.BlazeConsoleScope)3 BlazeCommand (com.google.idea.blaze.base.command.BlazeCommand)2 BlazeProjectData (com.google.idea.blaze.base.model.BlazeProjectData)2 BlazeConsolePopupBehavior (com.google.idea.blaze.base.settings.BlazeUserSettings.BlazeConsolePopupBehavior)2 Project (com.intellij.openapi.project.Project)2 ApkProvisionException (com.android.tools.idea.run.ApkProvisionException)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 ImmutableList (com.google.common.collect.ImmutableList)1 LineProcessingOutputStream (com.google.idea.blaze.base.async.process.LineProcessingOutputStream)1 BuildResultHelper (com.google.idea.blaze.base.command.buildresult.BuildResultHelper)1 ProjectViewSet (com.google.idea.blaze.base.projectview.ProjectViewSet)1 BlazeTargetFilter (com.google.idea.blaze.base.run.filter.BlazeTargetFilter)1 LineProcessingProcessAdapter (com.google.idea.blaze.base.run.processhandler.LineProcessingProcessAdapter)1 ScopedBlazeProcessHandler (com.google.idea.blaze.base.run.processhandler.ScopedBlazeProcessHandler)1