com.android.ide.common.process
Interface ProcessExecutor

All Known Implementing Classes:
DefaultProcessExecutor

public interface ProcessExecutor

An executor for external processes.


Method Summary
 ProcessResult execute(ProcessInfo processInfo, ProcessOutputHandler processOutputHandler)
          Executes an external process as specified by the ProcessInfo.
 

Method Detail

execute

@NonNull
ProcessResult execute(@NonNull
                              ProcessInfo processInfo,
                              @NonNull
                              ProcessOutputHandler processOutputHandler)
Executes an external process as specified by the ProcessInfo. The process always returns, even when the execution failed. The various possible outcomes of the execution can be queried through the ProcessResult instance.

Parameters:
processInfo - the specification of what to run.
processOutputHandler - the output handler
Returns:
the ProcessResult