// do not index our repository.xml, nor the file we are working on now.
return;
}
if (path.getName().endsWith(".jar")) {
BundleInfo info = new BundleInfo(repository, path);
ResourceImpl resource = info.build();
if (urlTemplate != null) {
doTemplate(path, resource);
}
else {
resource.setURL(path.toURI().toURL());
}
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);
}
}
}
}