use of org.fusesource.jansi.AnsiOutputStream in project gradle by gradle.
the class GroupedOutputFixture method stripAnsiCodes.
private String stripAnsiCodes(String output) {
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
IOUtils.copy(new StringReader(output), new AnsiOutputStream(baos));
return baos.toString();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
Aggregations