[bisq-network/bisq] Fix issue with resource files not loaded on Ubuntu Linux (PR #5898)

Steven Barclay notifications at github.com
Mon Dec 6 14:19:25 CET 2021


I was debugging the same issue on Windows a couple of days ago, caused by the expression `new File(dirUrl.toUri())`. I ended up adapting the following method from StackOverflow, which seems to work:

https://stackoverflow.com/questions/3923129/get-a-list-of-resources-from-classpath-directory/48190582#48190582

It looks like you have to use two different code paths to list the resource directory, depending on the environment.

(I created a [draft patch for the fix](https://github.com/stejbac/bisq/commit/c8d0c49545bf0688e5789bec946102037c0151f6), but never got round to creating a PR out of it. The foreach loop to do the copying needs modifying to work on Windows as well, just like in this PR.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5898#issuecomment-986768567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211206/2e3bcd36/attachment.htm>


More information about the bisq-github mailing list