AttributesImpl atts = new AttributesImpl();
handler.startElement("", RepositoryHandler.REPOSITORY, RepositoryHandler.REPOSITORY, atts);
int nbOk = 0;
int nbRejected = 0;
while (it.hasNext()) {
ManifestAndLocation manifestAndLocation = (ManifestAndLocation) it.next();
BundleInfo bundleInfo;
try {
bundleInfo = ManifestParser.parseManifest(manifestAndLocation.getManifest());
bundleInfo.setUri(manifestAndLocation.getUri());
nbOk++;
} catch (ParseException e) {
nbRejected++;
IvyContext
.getContext()
.getMessageLogger()
.log("Rejected " + manifestAndLocation.getUri() + ": " + e.getMessage(),
level);
continue;
}
saxBundleInfo(bundleInfo, handler);
}