-4

My question is simple, i want my program to update itself every time it starts making pull from git. Its there a way to do it?

Also I want the program to make push to the repo at git.

Thanks!

2 Answers2

0

It isn't clear what you're asking, but it sounds like you're looking for Git Hooks.

user314104
  • 1,528
  • 14
  • 31
0

I'm afraid there is no simple way to do it. An option can be to build one (or more) OSGi bundles (modules) from your application, listen to file change events ( https://blogs.oracle.com/thejavatutorials/entry/watching_a_directory_for_changes ), recompile and re-package the changed code using the built-in compiler ( http://docs.oracle.com/javase/8/docs/api/javax/tools/JavaCompiler.html ) then update the new OSGi bundle. But probably it won't be an easy ride if you aren't familiar with OSGi.

erosb
  • 2,943
  • 15
  • 22