com.android.ide.common.process
Interface JavaProcessExecutor


public interface JavaProcessExecutor

An executor for external Java-based processes.


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

Method Detail

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