use of aQute.bnd.service.RepositoryPlugin in project bnd by bndtools.
the class AetherRepsitoryTests method testVersionsBadBsn.
public void testVersionsBadBsn() throws Exception {
RepositoryPlugin repo = createRepo();
SortedSet<Version> versions = repo.versions("foo.bar.foobar");
assertNull(versions);
}
use of aQute.bnd.service.RepositoryPlugin in project bndtools by bndtools.
the class RepositoryBundlesContentProvider method getChildren.
@Override
public Object[] getChildren(Object parentElement) {
RepositoryPlugin repoPlugin = (RepositoryPlugin) parentElement;
List<String> bsns;
try {
bsns = repoPlugin.list(null);
} catch (Exception e) {
logger.logError("Error querying repository " + repoPlugin.getName(), e);
bsns = Collections.emptyList();
}
return bsns.toArray(new String[0]);
}
Aggregations