305306307308309310311312313314315
ProcessResult result = processConsumer.await(); if (spawnedProcess.hasFailed()) { throw new ExecutionException("Invocation of \"{0}\" failed with {1}", new Object[] { command, result.exitValue() }); } return result; } }