use of org.gradle.internal.nativeintegration.console.ConsoleMetaData in project gradle by gradle.
the class OutputEventRenderer method attachConsole.
@Override
public void attachConsole(OutputStream outputStream, ConsoleOutput consoleOutput) {
synchronized (lock) {
if (consoleOutput == ConsoleOutput.Plain) {
addPlainConsole(new StreamBackedStandardOutputListener(outputStream));
} else {
ConsoleMetaData consoleMetaData = FallbackConsoleMetaData.INSTANCE;
OutputStreamWriter writer = new OutputStreamWriter(outputStream);
Console console = new AnsiConsole(writer, writer, getColourMap(), consoleMetaData, true);
addRichConsole(console, true, true, consoleMetaData, consoleOutput == ConsoleOutput.Verbose);
}
}
}
Aggregations