mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 291886 build output from referenced projects is discarded
This commit is contained in:
parent
f9fcabfe8d
commit
1ccd6348b9
1 changed files with 1 additions and 28 deletions
|
@ -148,33 +148,6 @@ public class CommonBuilder extends ACBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
private static class NullConsole implements IConsole { // return a null console
|
||||
private final ConsoleOutputStream nullStream = new ConsoleOutputStream() {
|
||||
@Override
|
||||
public void write(byte[] b) throws IOException {
|
||||
}
|
||||
@Override
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
}
|
||||
@Override
|
||||
public void write(int c) throws IOException {
|
||||
}
|
||||
};
|
||||
|
||||
public void start(IProject project) {
|
||||
}
|
||||
// this can be a null console....
|
||||
public ConsoleOutputStream getOutputStream() {
|
||||
return nullStream;
|
||||
}
|
||||
public ConsoleOutputStream getInfoStream() {
|
||||
return nullStream;
|
||||
}
|
||||
public ConsoleOutputStream getErrorStream() {
|
||||
return nullStream;
|
||||
}
|
||||
}
|
||||
|
||||
private static class CfgBuildSet {
|
||||
Map<IProject, Set<String>> fMap = new HashMap<IProject, Set<String>>();
|
||||
|
||||
|
@ -231,7 +204,7 @@ public class CommonBuilder extends ACBuilder {
|
|||
|
||||
public IConsole getConsole(){
|
||||
if(fConsole == null){
|
||||
fConsole = fIsForeground ? CCorePlugin.getDefault().getConsole() : new NullConsole();
|
||||
fConsole = CCorePlugin.getDefault().getConsole();
|
||||
fConsole.start(fProject);
|
||||
}
|
||||
return fConsole;
|
||||
|
|
Loading…
Add table
Reference in a new issue