Class ProcessLauncher


  • @Deprecated
    public final class ProcessLauncher
    extends Object
    Deprecated.
    Launches a process, redirecting the output of that sub-process to the output of this (the parent) process.
    • Constructor Detail

      • ProcessLauncher

        public ProcessLauncher​(String commandLine)
        Deprecated.
        Constructs a new ProcessLauncher with the given command line.
        Parameters:
        commandLine - command line
      • ProcessLauncher

        public ProcessLauncher​(String commandLine,
                               File baseDir)
        Deprecated.
        Constructs a new ProcessLauncher with the given command line and base directory
        Parameters:
        commandLine - command line
        baseDir - base directory
      • ProcessLauncher

        public ProcessLauncher​(String[] commandArray)
        Deprecated.
        Constructs a new ProcessLauncher with the given command array.
        Parameters:
        commandArray - command as array of strings
      • ProcessLauncher

        public ProcessLauncher​(String[] commandArray,
                               File baseDir)
        Deprecated.
        Constructs a new ProcessLauncher with the given command array and base directory.
        Parameters:
        commandArray - command as array of strings
        baseDir - base directory
      • ProcessLauncher

        public ProcessLauncher​(ArrayList<?> commandList)
        Deprecated.
        Constructs new process launcher with the given command element list.
        Parameters:
        commandList - command list
      • ProcessLauncher

        public ProcessLauncher​(ArrayList<?> commandList,
                               File baseDir)
        Deprecated.
        Constructs new process launcher with the given command element list and base directory.
        Parameters:
        commandList - command list
        baseDir - base directory
    • Method Detail

      • addOutputListener

        public void addOutputListener​(ProcessLauncher.OutputListener listener)
        Deprecated.
        Add a listener for output from the to-be-launched process.
        Parameters:
        listener - output listener
      • getStandardOutput

        public String getStandardOutput()
        Deprecated.
        Get standard output, in case no listeners were registered - never returns null.
        Returns:
        standard output as string
      • getErrorOutput

        public String getErrorOutput()
        Deprecated.
        Get error output, in case no listeners were registered - never returns null.
        Returns:
        standard error as string
      • getCommandLine

        public String getCommandLine()
        Deprecated.
        Get the commandline that is used to launch the process.
        Returns:
        command line
      • hasFinished

        public boolean hasFinished()
        Deprecated.
        Check whether execution has finished.
        Returns:
        true when finished
      • abort

        public void abort()
        Deprecated.
        Tries to abort the currently running process.