Class TestProcessUtils

java.lang.Object
ubic.gemma.core.util.test.TestProcessUtils

public class TestProcessUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A shell command that writes this many bytes to standard error: more than a pipe buffer holds (64 KiB on Linux, up to 64 KiB on macOS), so a child running it blocks until the parent reads its standard error.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Process
    startJavaProcess(Class<?> mainClass, String... argv)
    Start a Java process that inherits the current process's environment and classpath.
    static Path
    writeShellScript(Path dir, String name, String body)
    Write an executable POSIX shell script to stand in for an external program.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FILL_STDERR

      public static final String FILL_STDERR
      A shell command that writes this many bytes to standard error: more than a pipe buffer holds (64 KiB on Linux, up to 64 KiB on macOS), so a child running it blocks until the parent reads its standard error.
      See Also:
  • Constructor Details

    • TestProcessUtils

      public TestProcessUtils()
  • Method Details

    • writeShellScript

      public static Path writeShellScript(Path dir, String name, String body) throws IOException
      Write an executable POSIX shell script to stand in for an external program.
      Throws:
      IOException
    • startJavaProcess

      public static Process startJavaProcess(Class<?> mainClass, String... argv) throws IOException
      Start a Java process that inherits the current process's environment and classpath.
      Throws:
      IOException