Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-commit to SVN with Java

Tags:

java

commit

svn

I run a lot of my projects for work using

java name.java

I was wondering if there was a way to add a hook to it where it would commit to SVN once that command is ran?

Thanks!

like image 803
Pete Avatar asked Jul 21 '26 18:07

Pete


1 Answers

There is no way to hook the 'java' executable itself.

What you want is a build system like Ant or Maven (you may or may not be familiar with the very old school make) - They allow innumerable actions before and after compilation, including building distribution binary, source control commits, documentation generation, testing... They will change your life.

like image 182
Chadwick Avatar answered Jul 23 '26 08:07

Chadwick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!