All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.lajoscseppento.ruthless.plugin.logging.impl.PlainTextOutput Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package dev.lajoscseppento.ruthless.plugin.logging.impl;

import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.gradle.internal.logging.text.AbstractLineChoppingStyledTextOutput;

/**
 * {@link org.gradle.internal.logging.text.StyledTextOutput} implementation which writes the output
 * to {@link BuildLogWriter} as plain text.
 */
@RequiredArgsConstructor
class PlainTextOutput extends AbstractLineChoppingStyledTextOutput {
  @NonNull private BuildLogWriter buildLogWriter;

  @Override
  protected void doStyleChange(Style style) {
    // Ignore styles
  }

  @Override
  protected void doLineText(CharSequence text) {
    buildLogWriter.print(text);
  }

  @Override
  protected void doEndLine(CharSequence endOfLine) {
    buildLogWriter.println();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy