@Override public int getExitValue() { return result.getExitValue(); }
@Override public ExecResult assertNormalExitValue() throws ExecException { return execResult.assertNormalExitValue(); }
private void onProcessStop(ExecResult execResult) { lock.lock(); try { try { execResult.rethrowFailure().assertNormalExitValue(); } catch (Throwable e) { processFailure = e; } running = false; condition.signalAll(); } finally { lock.unlock(); } }
} else if (execResult.getExitValue() != 0) { log.lifecycle(outputStream.toString()); execResult.assertNormalExitValue();
@Override public ExecResult rethrowFailure() throws ExecException { return execResult.rethrowFailure(); }
} else if (execResult.getExitValue() != 0) { log.lifecycle(outputStream.toString()); execResult.assertNormalExitValue();
@Override public ProcessResult rethrowFailure() throws ProcessException { try { result.rethrowFailure(); } catch (ExecException e) { throw new ProcessException(e); } return this; } }
@Override public int getExitValue() { return result.getExitValue(); }
@Override public ProcessResult assertNormalExitValue() throws ProcessException { try { result.assertNormalExitValue(); } catch (ExecException e) { throw new ProcessException(e); } return this; }
private void runForkedFernFlower(final File data) { ExecResult result = getProject().javaexec(new Action<JavaExecSpec>() { @Override public void execute(JavaExecSpec exec) { exec.classpath(forkedClasspath); exec.setMain(FernFlowerInvoker.class.getName()); exec.setJvmArgs(ImmutableList.of("-Xmx3G")); // pass the temporary file exec.args(data); // Forward std streams exec.setStandardOutput(System.out); exec.setErrorOutput(System.err); } }); result.rethrowFailure(); result.assertNormalExitValue(); }
@NonNull @Override public ProcessResult rethrowFailure() throws ProcessException { try { result.rethrowFailure(); } catch (ExecException e) { throw buildProcessException(e); } return this; }
@Override public int getExitValue() { return execResult.getExitValue(); }
@Override public void run() { try { ExecResult execResult = javaExecHandleBuilder.execute(); execResult.assertNormalExitValue(); } catch (Exception e) { e.printStackTrace(); } finally { latch.countDown(); } } });
execResult.rethrowFailure();
static void ensureSucceeded(ExecResult result, String prefix) { if (result.getExitValue() != 0) { throw new GradleException("External process failed with exit code " + result.getExitValue() + "\n" + "Please inspect the command output prefixed with '" + prefix.trim() + "' the build log."); } }
public ExecResult waitForStop() { try { return execHandle.waitForFinish().assertNormalExitValue(); } finally { cleanup(); } }
it.setArgs(Arrays.asList("--login", "-c", "exit 0")); }).rethrowFailure();
static void ensureSucceeded(ExecResult result, String prefix) { if (result.getExitValue() != 0) { throw new GradleException("External process failed with exit code " + result.getExitValue() + "\n" + "Please inspect the command output prefixed with '" + prefix.trim() + "' the build log."); } }
@NonNull @Override public ProcessResult assertNormalExitValue() throws ProcessException { try { result.assertNormalExitValue(); } catch (ExecException e) { throw buildProcessException(e); } return this; }