mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
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>
This commit is contained in:
parent
3427065e65
commit
88df41a67f
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue