resources.add(resource);
}
else {
// this is some other resource, we might want to include it.
if (all) {
ResourceMetaData metadata = ResourceMetaData.getArtifactMetaData(path.getName());
ResourceImpl impl = new ResourceImpl(repository, metadata.getSymbolicName(), new VersionRange(metadata.getVersion()));
impl.setURL(path.toURI().toURL());
resources.add(impl);
}
}
}