June 2018
Beginner to intermediate
376 pages
8h 58m
English
Subversion (SVN) hooks are a little bit more complicated; they will depend upon how your system is configured to a degree. The hooks are stored in your svn repository in a subfolder called hooks. As with Git, they need to have specific names (a full list of which is available in the SVN manual). For our purposes, we are only interested in the pre-commit hook so let's start off with a *nix-based environment. First of all, we need to create a file called pre-commit, and then we will populate it with this code:
#!/usr/bin/env bash mvn clean verify
As you can see, it looks identical to the Git hook script, but there may be problems. SVN hooks are run against an empty environment, so if you are using an environment variable to make ...
Read now
Unlock full access