Log bad Classpath URI entries

This commit is contained in:
Joakim Erdfelt 2022-10-17 15:18:43 -05:00
parent feadf3f56e
commit 3e8697f926
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 7 additions and 1 deletions

View File

@ -148,7 +148,13 @@ public class MetaInfConfiguration extends AbstractConfiguration
Consumer<URI> addContainerResource = (uri) -> Consumer<URI> addContainerResource = (uri) ->
{ {
Resource resource = _resourceFactory.newResource(uri); Resource resource = _resourceFactory.newResource(uri);
context.getMetaData().addContainerResource(resource); if (resource == null || !resource.exists())
{
if (LOG.isDebugEnabled())
LOG.debug("Classpath URI doesn't exist: " + uri);
}
else
context.getMetaData().addContainerResource(resource);
}; };
List<URI> containerUris = getAllContainerJars(context); List<URI> containerUris = getAllContainerJars(context);