Class ProcessBuilder


  • public class ProcessBuilder
    extends Object
    • Constructor Detail

      • ProcessBuilder

        public ProcessBuilder()
    • Method Detail

      • cleanupProcess

        public static void cleanupProcess()
        it will lookup for process that are dead already, eliminating leaks.
      • build

        public static Process build​(String logname,
                                    File location,
                                    boolean hook,
                                    String... args)
                             throws Exception
        *
        Parameters:
        logname - the prefix for log output
        location - The location where this command is being executed from
        hook - it will finish the process upon shutdown of the VM
        args - The arguments being passwed to the the CLI tool
        Returns:
        Throws:
        Exception
      • rebuildArgs

        public static String[] rebuildArgs​(String[] args,
                                           String... prefixArgs)