Comments (7)
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.
Thanks for your quick answer (and thanks for update4j!) , so for now I will just reuse the same filename and be happy.
from update4j.
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.
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.
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.
I'm looking forward for this feature. Thank you!
from update4j.
Need testers for Linux.
from update4j.
Related Issues (20)
- Permission Issue: Default Bootstrap Archive Location HOT 9
- Updating app's JDK with update4j HOT 5
- Make update.zip path confgurable HOT 1
- Deletion of files not present in config HOT 8
- getOldFiles takes a long time (too long?) HOT 22
- Basic issue of understanding HOT 25
- Working in offline mode with --local and --syncLocal HOT 3
- Communication between bootstrap and business application HOT 4
- config.update does not download anything and just stop the programs HOT 2
- Headless Setup with NGINX Basic Auth HOT 13
- proposal HOT 1
- NoSuchFileException reserved/config when there is nothing to update HOT 3
- Demo App doesn't run on Windows 11 and Java 19 HOT 4
- Connect/read timeouts too short on URLConnection HOT 1
- Propagating business applications' exit code through Bootstrap HOT 5
- Error running an SWT application HOT 8
- Support multiple architectures HOT 19
- Exception when download files. HOT 2
- Relative path in basePath? HOT 3
- Size of file does not match size in configuration HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from update4j.