/** * Whether the execution occurred and resulted in an error * * @return <code>true</code> if the execution occurred and resulted in a * return code different from 0, <code>false</code> otherwise. * @since 4.0 */ public boolean isExecutedWithError() { return getStatus() == ProcessResult.Status.OK && getExitCode() != 0; } }
/** * @return <code>true</code> if the execution occurred and resulted in a * return code different from 0, <code>false</code> otherwise. * @since 4.0 */ public boolean isExecutedWithError() { return getStatus() == ProcessResult.Status.OK && getExitCode() != 0; } }
/** * Whether the execution occurred and resulted in an error * * @return <code>true</code> if the execution occurred and resulted in a * return code different from 0, <code>false</code> otherwise. * @since 4.0 */ public boolean isExecutedWithError() { return getStatus() == ProcessResult.Status.OK && getExitCode() != 0; } }
private void postCommitHook(final JGitFileSystem fileSystem) { ProcessResult result = detectedFS.runHookIfPresent(fileSystem.getGit().getRepository(), "post-commit", new String[0]); if(result.getStatus().equals(ProcessResult.Status.OK)) { fileSystem.notifyPostCommit(result.getExitCode()); } }