Coder Social home page Coder Social logo

Comments (7)

mordechaim avatar mordechaim commented on May 29, 2024

It's a bit a risky operation, and unless you use the same filename it's somewhat out of the scope of this framework.

Of course, nothing keeps you from doing this logic yourself in a custom bootstrap application.

from update4j.

AG72 avatar AG72 commented on May 29, 2024

Thanks for your quick answer (and thanks for update4j!) , so for now I will just reuse the same filename and be happy.

from update4j.

mordechaim avatar mordechaim commented on May 29, 2024

Just noticed your file name indicate that you are asking about bootstrap modules, i.e. an update handler.

Files like this cannot really be deleted/overwritten, since it loads unto the JVM when the framework launches (on Windows they are locked, on UNIX it is just unsafe to overwrite, although it's not locked).

Here is where the versioning come in; just leave them there (you can remove them from config though), release a new version with new filename and increment the version() and let update4j do the rest.

from update4j.

AG72 avatar AG72 commented on May 29, 2024

The filename I chose in the example was a bit misleading. In fact I have an application using lots of external dependencies as e.g. Spring framework. In case a new version of that framework is released and I update the update4j configuration to the new version, I will have both versions in my "boot" directory on the client that is synced by update4j.

It is not a real problem since the old libraries are not on the classpath when update4j launches the client after syncing the files, the idea was to keep the "boot" directory clean and not growing too much over the time.
This could be achieved by a delta mechanism that compares the files in the clients configuration before and after syncing and then - of course secured by an extra option in the configuration - deletes obsolete files.

from update4j.

mordechaim avatar mordechaim commented on May 29, 2024

After much thought I came up with a design that uses your idea and still nicely fits into the rest of the framework.

I'm going to implement/test it soon.

from update4j.

AG72 avatar AG72 commented on May 29, 2024

I'm looking forward for this feature. Thank you!

from update4j.

mordechaim avatar mordechaim commented on May 29, 2024

Need testers for Linux.

from update4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.