Class AbstractExecutorInterpreter

    • Constructor Detail

      • AbstractExecutorInterpreter

        public AbstractExecutorInterpreter()
    • Method Detail

      • newSimpleProcess

        protected fr.ens.biologie.genomique.kenetre.util.process.SimpleProcess newSimpleProcess()
                                                                                         throws IOException
        Create a new SimpleProcess that will be use to launch the command.
        Returns:
        a new SimpleProcess object
        Throws:
        IOException - if an error occurs while creating the process
      • execute

        public ToolExecutorResult execute​(List<String> commandLine,
                                          File executionDirectory,
                                          File temporaryDirectory,
                                          File stdoutFile,
                                          File stderrFile,
                                          File... filesUsed)
                                   throws IOException
        Description copied from interface: ExecutorInterpreter
        Execute a command line.
        Specified by:
        execute in interface ExecutorInterpreter
        Parameters:
        commandLine - the command line to execute
        executionDirectory - execution directory
        temporaryDirectory - temporary directory
        stdoutFile - stdout file
        stderrFile - stderr file
        filesUsed - files used
        Returns:
        a ToolExecutor object
        Throws:
        IOException - if an error occurs while executing the command