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 
    Deprecated.
    Used to specify which environment variables are secure and shouldn't be printed literally.
  • Method Summary

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

    • printLine

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

      void readErrorOf(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(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(Map<String,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