post-commit hook implementation. This hook is run after the
commit was successfully executed.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | NAME
The post-commit hook name. |
| Access | Constructor and Description |
|---|---|
| protected | PostCommitHook(Repository
The repository repo, PrintStream The output stream the hook must use. outputStream)null is allowed,
in which case the hook will use System.out.Constructor for PostCommitHook This constructor will use the default error stream. |
| protected | PostCommitHook(Repository
The repository repo, PrintStream The output stream the hook must use. outputStream, PrintStream null is allowed,
in which case the hook will use System.out.The error stream the hook must use. errorStream)null is allowed,
in which case the hook will use System.err.Constructor for PostCommitHook |
| Modifier and Type | Method and Description |
|---|---|
| public Void | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| public String | |
| protected void | handleError(String
error message message, ProcessResult The process result of the hook result)Overrides org. Overwrites the default implementation to never throw an
|
| NAME | back to summary |
|---|---|
| public static final String NAME The post-commit hook name. | |
| PostCommitHook | back to summary |
|---|---|
| protected PostCommitHook(Repository repo, PrintStream outputStream) Constructor for PostCommitHook This constructor will use the default error stream.
| |
| PostCommitHook | back to summary |
|---|---|
| protected PostCommitHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PostCommitHook
| |
| call | back to summary |
|---|---|
| public Void call() throws IOException, AbortedByHookException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Run the hook.
| |
| getHookName | back to summary |
|---|---|
| public String getHookName() Implements abstract org. Doc from org. Get name of the hook | |
| handleError | back to summary |
|---|---|
| protected void handleError(String message, ProcessResult result) throws AbortedByHookException Overrides org. Overwrites the default implementation to never throw an
| |