use of aQute.bnd.deployer.repository.NullLogService in project bnd by bndtools.
the class TestObrCapReqParsing method parseIndex.
private static List<Resource> parseIndex(InputStream stream, URI baseUri) throws Exception {
ObrContentProvider parser = new ObrContentProvider(new BundleIndexerImpl());
final List<Resource> resources = new LinkedList<Resource>();
IRepositoryIndexProcessor processor = new IRepositoryIndexProcessor() {
public void processResource(Resource resource) {
resources.add(resource);
}
public void processReferral(URI parentUri, Referral referral, int maxDepth, int currentDepth) {
}
};
parser.parseIndex(stream, baseUri, processor, new NullLogService());
return resources;
}
Aggregations