Finding files in jars
Hello,
I have a problem with finding xml files in my program.
Here is what I want to do:
In my project there are some xml files under a certain file structure, say "src/main/data".
These files determine the behaviour of some UI masks and define database objects.
The files are read and parsed on startup. I search only src/main/data on the filesystem for files.
To extend the functionality of my program I want to be able to include a jar file containing the same path. Under this path there are more xml files.
This has the advantage that you can configure your program by adding/removing jars to your classpath.
Here is the problem.
I'm able to manage to read the filessystem and search for xml data.
I'm not able to do this with jars. Originally I thought if there is the same path in a jar, the files in this jar will be somehow "mapped" to my project.
This is obviously wrong.
How can I find certain files in jars I dont know the name from? All I know is the path.
Do you understand what I try to say?
Do you have a solution or any hint where I can go and take a look?
Thank you very much!
Stefan

