From 0f75bfc383fd426376422ff13ecfe1fb5ee13cd9 Mon Sep 17 00:00:00 2001 From: Christian Walther Date: Tue, 11 Dec 2018 16:25:54 +0100 Subject: [PATCH] Bug 542676 - Headless build missing some console output The ConsoleOutputStream method added in 6e1b9b4 must be overridden here, otherwise text sent to it does not appear along with the other console output. Change-Id: I1a3803ffb8962140537b877f0df328a4037b4dfb Signed-off-by: Christian Walther --- .../eclipse/cdt/internal/core/SystemBuildConsole.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/SystemBuildConsole.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/SystemBuildConsole.java index 9621d580ddc..9be481b2a29 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/SystemBuildConsole.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/SystemBuildConsole.java @@ -38,6 +38,11 @@ public class SystemBuildConsole implements IConsole { public synchronized void write(int c) throws java.io.IOException { System.out.write(c); } + + @Override + public synchronized void write(String msg) throws java.io.IOException { + System.out.print(msg); + } }; err = new ConsoleOutputStream() { @Override @@ -49,6 +54,11 @@ public class SystemBuildConsole implements IConsole { public synchronized void write(int c) throws java.io.IOException { System.err.write(c); } + + @Override + public synchronized void write(String msg) throws java.io.IOException { + System.err.print(msg); + } }; }