com.android.ide.common.process
Interface ProcessExecutor
- All Known Implementing Classes:
- DefaultProcessExecutor
public interface ProcessExecutor
An executor for external processes.
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