Class StreamToLogsPumper

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    ErrorStreamToLogsPumper

    public class StreamToLogsPumper
    extends Object
    implements Runnable
    This class pumps the contents of an input stream into the build logs only (i.e. not to a list). It is designed to be executed within a thread.

    Basically a variation of the Ant StreamPumper that puts in the output in the logs

    • Field Detail

      • planKey

        protected final String planKey
    • Constructor Detail

      • StreamToLogsPumper

        public StreamToLogsPumper​(InputStream inputStream,
                                  BuildLogger buildLogger,
                                  String planKey)
        Pump the given inputStream into the given outputList
        Parameters:
        inputStream - input data stream
        buildLogger -
        planKey -
      • StreamToLogsPumper

        public StreamToLogsPumper​(InputStream inputStream,
                                  BuildLogger buildLogger,
                                  String planKey,
                                  boolean filterDownloadStatusMessages)
    • Method Detail

      • run

        public void run()
        Convert the input stream into a list within the thread
        Specified by:
        run in interface Runnable
      • log

        protected void log​(@NotNull
                           @NotNull String line)