Interface Console


@Deprecated
public interface Console
Deprecated.
Used to write information of a task run, out to the build log.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static interface  Console.SecureEnvVarSpecifier
    Deprecated.
    Used to specify which environment variables are secure and shouldn't be printed literally.
  • Method Summary

    Modifier and Type Method Description
    void printEnvironment​(java.util.Map<java.lang.String,​java.lang.String> environment, Console.SecureEnvVarSpecifier secureEnvVarSpecifier)
    Deprecated.
    Print details about the environment specified in the argument into the build log.
    void printLine​(java.lang.String line)
    Deprecated.
    Print a line out to the build log.
    void readErrorOf​(java.io.InputStream in)
    Deprecated.
    Setup the console to read the input stream as standard error.
    void readOutputOf​(java.io.InputStream in)
    Deprecated.
    Setup the console to read the input stream as standard output.
  • Method Details

    • printLine

      void printLine​(java.lang.String line)
      Deprecated.
      Print a line out to the build log.
      Parameters:
      line - Line to write.
    • readErrorOf

      void readErrorOf​(java.io.InputStream in)
      Deprecated.
      Setup the console to read the input stream as standard error.

      This is used to connect the output of a process, to the build log. This is usually used as: console.readErrorOf(process.getErrorStream());

      where the "process" object is of type Process.
      Parameters:
      in - The input stream to read as standard error.
    • readOutputOf

      void readOutputOf​(java.io.InputStream in)
      Deprecated.
      Setup the console to read the input stream as standard output.

      This is used to connect the output of a process, to the build log. This is usually used as: console.readOutputOf(process.getInputStream());

      where the "process" object is of type Process.
      Parameters:
      in - The input stream to read as standard output.
    • printEnvironment

      void printEnvironment​(java.util.Map<java.lang.String,​java.lang.String> environment, Console.SecureEnvVarSpecifier secureEnvVarSpecifier)
      Deprecated.
      Print details about the environment specified in the argument into the build log.
      Parameters:
      environment - Environment to print details of.
      secureEnvVarSpecifier - Console.SecureEnvVarSpecifier