Class JUnitTask.JUnitLogOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
JUnitTask

protected static class JUnitTask.JUnitLogOutputStream extends LogOutputStream
A stream handler for handling the junit task.
Since:
Ant 1.7
  • Constructor Details

    • JUnitLogOutputStream

      public JUnitLogOutputStream(Task task, int level)
      Constructor.
      Parameters:
      task - the task being logged.
      level - the log level used to log data written to this stream.
  • Method Details

    • processLine

      protected void processLine(String line, int level)
      Logs a line. If the line starts with junit.framework.TestListener: set the level to MSG_VERBOSE.
      Overrides:
      processLine in class LogOutputStream
      Parameters:
      line - the line to log.
      level - the logging level to use.