Class ProcessExecutor

    • Constructor Detail

      • ProcessExecutor

        public ProcessExecutor()
    • Method Detail

      • executeProcessCommand

        public boolean executeProcessCommand​(String command)
        Execute command and wait until command is finished. Output and error streams are redirected to the logger.
        Parameters:
        command - Command to be executed.
        Returns:
        True if process terminated normally, false in case of error during processing.
      • executeProcessCommand

        public boolean executeProcessCommand​(String command,
                                             Path directory)
        Execute command and wait until command is finished. Output and error streams are redirected to the logger.
        Parameters:
        command - Command to be executed.
        directory - Directory where the command should be executed.
        Returns:
        True if process terminated normally, false in case of error during processing.