Search in sources :

Example 1 with FlushConsoleListener

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);
}
Also used : StyledTextOutputBackedRenderer(org.gradle.internal.logging.console.StyledTextOutputBackedRenderer) OutputEventListener(org.gradle.internal.logging.events.OutputEventListener) ThrottlingOutputEventListener(org.gradle.internal.logging.console.ThrottlingOutputEventListener) FlushConsoleListener(org.gradle.internal.logging.console.FlushConsoleListener)

Example 2 with FlushConsoleListener

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);
}
Also used : StyledTextOutputBackedRenderer(org.gradle.internal.logging.console.StyledTextOutputBackedRenderer) StreamingStyledTextOutput(org.gradle.internal.logging.text.StreamingStyledTextOutput) OutputEventListener(org.gradle.internal.logging.events.OutputEventListener) ThrottlingOutputEventListener(org.gradle.internal.logging.console.ThrottlingOutputEventListener) FlushConsoleListener(org.gradle.internal.logging.console.FlushConsoleListener) StreamBackedStandardOutputListener(org.gradle.internal.logging.text.StreamBackedStandardOutputListener)

Aggregations

FlushConsoleListener (org.gradle.internal.logging.console.FlushConsoleListener)2 StyledTextOutputBackedRenderer (org.gradle.internal.logging.console.StyledTextOutputBackedRenderer)2 ThrottlingOutputEventListener (org.gradle.internal.logging.console.ThrottlingOutputEventListener)2 OutputEventListener (org.gradle.internal.logging.events.OutputEventListener)2 StreamBackedStandardOutputListener (org.gradle.internal.logging.text.StreamBackedStandardOutputListener)1 StreamingStyledTextOutput (org.gradle.internal.logging.text.StreamingStyledTextOutput)1