Create an Update System - Java [duplicate]

-1

Good afternoon guys,

I developed a system where I depend on getting updates and maintenance on the system. But I'm having a hard time distributing updates since it's Desktop system. Is there a system that does this, or should I create a system that does this?

How would I do this?

Thank you in advance.

    
asked by anonymous 15.03.2016 / 18:24

1 answer

0

I once had to do a "version updater" for a VB application. The summary of the work would be, the user clicks on the updater (he even knows that there is another executable besides that) that, in turn, searches the FTP repository for a newer version, having it download, unzip, copies the files to the folders correct, runs sql scripts in the database, updates operating system records and in the end executes the application. Advantages of this format - no cost Disadvantages of this format - too much code written for a simple task

Another, much more interesting, way is to use a continuous integration server, such as Hudson , this way you would still need a " updater "but could separately package your libraries and decrease the amount of code, then maintenance, in your updater.

A third one, I thought about it now but I think it's even cooler, to distribute maven with your application, use existing plugins or create the theirs for the purpose of retrieving releases (SCM, ftp or continuing integration server), upgrade database (scripts or hibernate).

Finally, since you will not be able to overwrite a running file, the simpler way is to have an updater (it is very common today, such lauchers) and that your client only "knows" it, being responsible for updating and / or run what is now your main file.

I do not know a solution ready for this case, I hope I have given a light on your search.

    
15.03.2016 / 19:23