Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Use reflection to find Loader class to load resources from #76

Merged
merged 3 commits into from
Mar 24, 2023

Conversation

05nelsonm
Copy link
Owner

Closes #72

#75 didn't fix it because, when testing it on https://github.com/05nelsonm/kmp-tor-java/tree/snapshot/loader it was not doing a clean extraction on each start, but utilizing the already extracted files located in my ~/.kmp-tor-java directory.

This PR's change was published as snapshot 4.7.13-4.1-SNAPSHOT and run with https://github.com/05nelsonm/kmp-tor-java/tree/version/4.7.13-4.1-SNAPSHOT which uses clean extraction on each start.

Adds optional argument loadPathPrefix for TorBinaryResource so consumers loading their own custom binaries contained in different modules can express a prefix to their Loader class which will be found in order to retrieve resources contained in that module/jar (or the module for Nodejs).

@05nelsonm 05nelsonm self-assigned this Mar 24, 2023
Copy link
Owner Author

@05nelsonm 05nelsonm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@05nelsonm 05nelsonm merged commit fce30a1 into master Mar 24, 2023
@05nelsonm 05nelsonm deleted the issue/72-fix-extractor branch March 24, 2023 12:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java modules causes resource loading to fail
1 participant