com.android.ide.common.process
Interface JavaProcessExecutor
public interface JavaProcessExecutor
An executor for external Java-based processes.
execute
@NonNull
ProcessResult execute(@NonNull
JavaProcessInfo javaProcessInfo,
@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:
javaProcessInfo
- the specification of what to run.processOutputHandler
- the output handler
- Returns:
- the ProcessResult