Open rsteph-de opened 2 months ago
When reading the libmeta catalog.xml files for XML schema validation we need ALL classpath resources for the given path and not only the first one.
getClassLoader.getResources() returns an Enumeration of URLs for all occurrences.
getClassLoader.getResources()
XMLSchemaValidator.class.getClassLoader().getResources("/libmeta/catalog.xml").; XMLSchemaValidator.class.getClassLoader().getResources("/libmeta/catalog.additional.xml"))
to get a stream use Collections.list(enumeration).stream()
Collections.list(enumeration).stream()
When reading the libmeta catalog.xml files for XML schema validation we need ALL classpath resources for the given path and not only the first one.
getClassLoader.getResources()
returns an Enumeration of URLs for all occurrences.to get a stream use
Collections.list(enumeration).stream()