Install Java JDK 1.8 – CentOS 6.7
I usually download the rpm or source from Java.com and install it manually but this…
You need to set this up on the server which hosts the SVN repository. Enter the repository and you should see a folder labelled hooks, create a new file labelled pre-commit without any extension and paste the following code inside
Note: I did not come up with this solution, I will update the source as soon as I can find it again.