I have the need to carry around a read only map db file as part of the resources for a fat jar i.e. I'm using groovy if it makes a diff, should not , I can read embedded plan text files from within the resource folder i.e. at runtime within a deployed fat jar but I cannot do the same for a map db file.
Java/Groovy are not my native tongue so maybe I'm missing something.
if I use the "getResourceAsStream" api , I am able to retrieve the file in question i.e. said file/resource can be found but the MapDB API expects a file
So first of all I"m wondering if its possible i.e. ever intended in the design, after all would not be able to write to the file in the first place, but in our case we just need read only .
We have been using in prod by deploying the map db file along with the jar , but the powers at be want to deliver the entire product as a single exe for which we plan to use launch4J i.e. if relevant to this issue
I appreciate the feedback, thanks