I'm using org.reflections library to find resources in package:
new Reflections(
"test", //package prefix
new ResourcesScanner()
).getResources(x -> x.endsWith(".xml"))
It worked fine until package with similar name was added.
E.g. it was only package test
and added package test_second
:
|
+-+-[test]
| +--one.xml
| +--two.xml
|
+-+-[test_second]
+--three.xml
+--four.xml
Now resources from both packages are found when I trying to scan it by prefix.
Question: how to scan resources only in "test" package using this library and ignore all other packages with "test" prefix?
Aucun commentaire:
Enregistrer un commentaire