use of org.gradle.internal.logging.console.FlushConsoleListener in project gradle by gradle.
the class OutputEventRenderer method addRichConsole.
public void addRichConsole(Console stdout, Console stderr, ConsoleMetaData consoleMetaData, boolean verbose) {
OutputEventListener stdoutChain = new StyledTextOutputBackedRenderer(stdout.getBuildOutputArea());
OutputEventListener stderrChain = new FlushConsoleListener(stderr, new StyledTextOutputBackedRenderer(stderr.getBuildOutputArea()));
OutputEventListener consoleListener = new ErrorOutputDispatchingListener(stderrChain, stdoutChain);
OutputEventListener consoleChain = getConsoleChainWithDynamicStdout(stdout, consoleMetaData, verbose, consoleListener);
addConsoleChain(consoleChain);
}
use of org.gradle.internal.logging.console.FlushConsoleListener in project gradle by gradle.
the class OutputEventRenderer method addRichConsole.
public void addRichConsole(OutputStream stdout, Console stderr, boolean verbose) {
OutputEventListener stdoutChain = new StyledTextOutputBackedRenderer(new StreamingStyledTextOutput(new StreamBackedStandardOutputListener(stdout)));
OutputEventListener stderrChain = new FlushConsoleListener(stderr, new StyledTextOutputBackedRenderer(stderr.getBuildOutputArea()));
OutputEventListener consoleListener = new ErrorOutputDispatchingListener(stderrChain, stdoutChain);
OutputEventListener consoleChain = getConsoleChainWithoutDynamicStdout(consoleListener, verbose);
addConsoleChain(consoleChain);
}
Aggregations