mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external build: support 'show compiler log' option for GWT compiler
This commit is contained in:
@@ -29,6 +29,7 @@ import com.intellij.compiler.make.ChangedConstantsDependencyProcessor;
|
||||
import com.intellij.compiler.make.DependencyCache;
|
||||
import com.intellij.compiler.progress.CompilerTask;
|
||||
import com.intellij.compiler.server.BuildManager;
|
||||
import com.intellij.compiler.server.CustomBuilderMessageHandler;
|
||||
import com.intellij.compiler.server.DefaultMessageHandler;
|
||||
import com.intellij.diagnostic.IdeErrorsDialog;
|
||||
import com.intellij.diagnostic.PluginException;
|
||||
@@ -512,7 +513,7 @@ public class CompileDriver {
|
||||
ExitStatus status = ExitStatus.SUCCESS;
|
||||
if (event.hasCompletionStatus()) {
|
||||
final CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status completionStatus = event.getCompletionStatus();
|
||||
switch(completionStatus) {
|
||||
switch (completionStatus) {
|
||||
case CANCELED:
|
||||
status = ExitStatus.CANCELLED;
|
||||
break;
|
||||
@@ -529,6 +530,13 @@ public class CompileDriver {
|
||||
}
|
||||
compileContext.putUserDataIfAbsent(COMPILE_SERVER_BUILD_STATUS, status);
|
||||
break;
|
||||
case CUSTOM_BUILDER_MESSAGE:
|
||||
if (event.hasCustomBuilderMessage()) {
|
||||
CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage message = event.getCustomBuilderMessage();
|
||||
messageBus.syncPublisher(CustomBuilderMessageHandler.TOPIC).messageReceived(message.getBuilderId(), message.getMessageType(),
|
||||
message.getMessageText());
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.compiler.server;
|
||||
|
||||
import com.intellij.util.messages.Topic;
|
||||
|
||||
import java.util.EventListener;
|
||||
|
||||
/**
|
||||
* @author nik
|
||||
*/
|
||||
public interface CustomBuilderMessageHandler extends EventListener {
|
||||
Topic<CustomBuilderMessageHandler> TOPIC = Topic.create("custom builder message", CustomBuilderMessageHandler.class);
|
||||
|
||||
void messageReceived(String builderId, String messageType, String messageText);
|
||||
}
|
||||
Reference in New Issue
Block a user