-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add directory layout according to os-maven-plugin and osdetector-gradle-plugin #32
Conversation
Hey! Why was this not merged? Looks really useful! |
Don't know. I created my own in the end which was more versatile and then didn't need it anymore. Feel free to create a new pr 😉 |
We can probably reopen this pull request if there is interest. I guess the changes proposed here aren't backward compatible, so we'd require a major version bump to @ctrueden any comments? |
They are (in theory) using the
I'd also like to add that the JNA library does something very similar, so matching their exact library search patterns may be a welcomed change for any developers mixing these. |
Sorry all, just too busy trying to maintain too many things. If anyone has the time and interest to help out as co-maintainer, that would be much appreciated. I do think we should preserve backwards compatibility if possible, or else bump to version 3.0.0-SNAPSHOT according to SemVer. Does anyone have the bandwidth to review this PR and fix backwards compatibility issues? If not, I can merge it as is and bump the version. Please let me know. |
In particular: os-maven-plugin and osdetector-gradle-plugin. Signed-off-by: Curtis Rueden <[email protected]>
See: https://github.com/trustin/os-maven-plugin Signed-off-by: Curtis Rueden <[email protected]>
Signed-off-by: Curtis Rueden <[email protected]>
I rebased this over the latest master. Tests still pass, but I didn't check super thoroughly that everything is 100% right. |
@bmarwell wrote:
Do you think it could fully replace this library? I'm always interested in better alternatives. |
Hi😊 In theory, yes. But nowadays I would use a completely different approach (no maps) and I never did a release. I stopped working on jssc, because I think I was a little too progressive (I wanted to avoid manual work). We also argued about caching the unpacked file between JVM starts - which is not needed in my opinion. So, if you are interested, we could get it going again. |
Adding context, in hindsight, the argument probably would have been better spent advocating for a simple, static location (#41) instead, as that seems how other large Java projects (IntelliJ, Cyberduck, Minecraft) handle this problem (they tackle the performance issues as a packaging/deployment task, which is probably where it belongs). My perspective has changed a bit as I work with other libraries that do the same, so, sorry. 🍻 |
I fully agree with that for large projects you mentioned. I am just not sure caching is so useful for a ~13kiB shared object/dll/dylib file (performance issues??). Also, having a new |
@lorenzleutgeb Is this work something you'd still find useful? Any time and interest in testing it? |
…e-plugin.