loading files contained within app jar file
I'm writing an application that needs to load certain files based on a parameter passed into it.
This works fine when testing locally as i just build the uri based on that parameter (eg. "c:/workspace/PARAMETER/allfiles/") and load all files in that location.
However now i need to deploy the app as a jar file file on a jboss server and am unsure whether i can manipulate the file structure within a jar to achieve the same thing?
(For anybody interested the files are Drools drl files and each 'list' represents a different rulebase, theoretically there will be unlimited rulebases)
So can anybody advise me on the best approach to loading a specific list of files within a jar based on a passed in parameter?