Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorDan Crosscup2016-09-05 23:48:12 +0000
committerDan Crosscup2016-09-05 23:48:12 +0000
commit88df41a67fb741e1847e4db40cf68504b616cbef (patch)
tree54dc4941176040c1d0c4d4741060638e8c5dc625 /codan
parent3427065e65803cffe1e75a413da893b8313904d5 (diff)
downloadorg.eclipse.cdt-88df41a67fb741e1847e4db40cf68504b616cbef.tar.gz
org.eclipse.cdt-88df41a67fb741e1847e4db40cf68504b616cbef.tar.xz
org.eclipse.cdt-88df41a67fb741e1847e4db40cf68504b616cbef.zip
Bug 500884. Fixed ExternalToolInvoker so it starts the Build Console.
Build Console needs to be started before OutputStream and ErrorStream are retrieved for the Sniffer. Change-Id: I1aea84ca9fa2e6806cb07513bb2c9cad47c11617 Signed-off-by: Dan Crosscup <tunzis@gmail.com>
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/internal/externaltool/ExternalToolInvoker.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/internal/externaltool/ExternalToolInvoker.java b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/internal/externaltool/ExternalToolInvoker.java
index 85cd2c8fc1..8343815c42 100644
--- a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/internal/externaltool/ExternalToolInvoker.java
+++ b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/internal/externaltool/ExternalToolInvoker.java
@@ -77,6 +77,10 @@ public class ExternalToolInvoker {
throws CoreException, InvocationFailure {
monitor.beginTask("Launching " + toolName, 100);
IConsole c = CCorePlugin.getDefault().getConsole(null, DEFAULT_CONTEXT_MENU_ID, toolName, null);
+
+ // Start Build Console so we can get the OutputStream and ErrorStream properly.
+ c.start(project);
+
ConsoleOutputSniffer sniffer = new ConsoleOutputSniffer(c.getOutputStream(), c.getErrorStream(), parsers);
final OutputStream out = sniffer.getOutputStream();
final OutputStream err = sniffer.getErrorStream();

Back to the top