File repositoryDirectory = new File(repositoryDir);
if (!checkRepository(repositoryDirectory)) {
return false;
}
Deployer deployer = new Deployer(repositoryDirectory);
List<BundleDescriptor> bundles = deployer.list();
for (BundleDescriptor descriptor : bundles) {
System.out.println(descriptor.getBundleSymbolicName() + " " + descriptor.getBundleVersion() +
" [" + descriptor.getBundleJarFileName() + "]" );
}