use of com.android.ide.common.process.ProcessOutput in project atlas by alibaba.
the class DexWrapperHook method run.
public static ProcessResult run(@NonNull DexProcessBuilder processBuilder, @NonNull DexOptions dexOptions, @NonNull ProcessOutputHandler outputHandler) throws IOException, ProcessException {
ProcessOutput output = outputHandler.createOutput();
int res;
try {
// DxConsole.out = outputHandler.createOutput().getStandardOutput();
// DxConsole.err = outputHandler.createOutput().getErrorOutput();
DxConsole dxConsole = new DxConsole();
Main.Arguments args = buildArguments(processBuilder, dexOptions, dxConsole);
res = new Main().run(args);
} finally {
output.close();
}
outputHandler.handleOutput(output);
return new DexProcessResult(res);
}
Aggregations