I want to list all files with a specific name in the class path. I expect multiple occurrences, so Class.getResource(String) will not work.
Basically, I have to identify all files with a specific name (for example: xyz.properties) anywhere in the class path, and then read the metadata in them cumulatively.
I want something from the effect of the Collection<URL> Class.getResources(String) , but could not find anything like it.
PS: I donβt have the luxury of using any third-party libraries, so you need a solution for the home.
source share