Search in sources :

Example 1 with StreamBackedStandardOutputListener

use of org.gradle.internal.logging.text.StreamBackedStandardOutputListener in project gradle by gradle.

the class OutputEventRenderer method addStandardOutputListener.

private void addStandardOutputListener() {
    synchronized (lock) {
        originalStdOut = System.out;
        if (stdOutListener != null) {
            stdoutListeners.remove(stdOutListener);
        }
        stdOutListener = new StreamBackedStandardOutputListener((Appendable) System.out);
        addStandardOutputListener(stdOutListener);
    }
}
Also used : StreamBackedStandardOutputListener(org.gradle.internal.logging.text.StreamBackedStandardOutputListener)

Example 2 with StreamBackedStandardOutputListener

use of org.gradle.internal.logging.text.StreamBackedStandardOutputListener in project gradle by gradle.

the class OutputEventRenderer method addStandardErrorListener.

private void addStandardErrorListener() {
    synchronized (lock) {
        originalStdErr = System.err;
        if (stdErrListener != null) {
            stderrListeners.remove(stdErrListener);
        }
        stdErrListener = new StreamBackedStandardOutputListener((Appendable) System.err);
        addStandardErrorListener(stdErrListener);
    }
}
Also used : StreamBackedStandardOutputListener(org.gradle.internal.logging.text.StreamBackedStandardOutputListener)

Aggregations

StreamBackedStandardOutputListener (org.gradle.internal.logging.text.StreamBackedStandardOutputListener)2