for (int i = 0; i < projects.length; i++) {
List containers = IvyClasspathUtil.getIvyClasspathContainers(projects[i]);
Iterator containerIter = containers.iterator();
while (containerIter.hasNext()) {
IvyClasspathContainer container = (IvyClasspathContainer) containerIter.next();
try {
DependencyDescriptor[] descriptors = container.getState().getModuleDescriptor()
.getDependencies();
for (int j = 0; j < descriptors.length; j++) {
DependencyDescriptor descriptor = descriptors[j];
MultiRevisionDependencyDescriptor syncableDependencyDescriptor
= (MultiRevisionDependencyDescriptor) moduleDescriptorMap
.get(descriptor.getDependencyId());
if (syncableDependencyDescriptor == null) {
syncableDependencyDescriptor = new MultiRevisionDependencyDescriptor(
descriptor.getDependencyId());
moduleDescriptorMap.put(descriptor.getDependencyId(),
syncableDependencyDescriptor);
}
syncableDependencyDescriptor.addDependencyDescriptor(container, descriptor);
}
} catch (IvyDEException e) {
e.show(IStatus.ERROR, "Inconsistent Ivy Classpath Container",
"Unable to find a module descriptor associated with"
+ container.getState().getIvyFile().getPath());
continue;
}
}
}