IvyDEMessage.warn("Skipping resolve on closed project " + project.getName());
monitor.worked(step);
continue;
}
IvyDEMessage.verbose("Loading ivysettings for " + request.toString());
CachedIvy cachedIvy = request.getCachedIvy();
Ivy ivy;
try {
ivy = cachedIvy.getIvy();
} catch (IvyDEException e) {
cachedIvy.setErrorMarker(e);
IvyDEMessage.error("Failed to configure Ivy for " + request + ": "
+ e.getMessage());
errorsStatus.add(e.asStatus(IStatus.ERROR, "Failed to configure Ivy for "
+ request));
monitor.worked(step);
continue;
}
cachedIvy.setErrorMarker(null);
ivys.put(request, ivy);
// IVYDE-168 : Ivy needs the IvyContext in the threadlocal in order to found the
// default branch
ivy.pushContext();
ModuleDescriptor md;
try {
md = cachedIvy.getModuleDescriptor(ivy);
} catch (IvyDEException e) {
cachedIvy.setErrorMarker(e);
IvyDEMessage.error("Failed to load the descriptor for " + request + ": "
+ e.getMessage());
errorsStatus.add(e.asStatus(IStatus.ERROR, "Failed to load the descriptor for "
+ request));
monitor.worked(step);
continue;
} finally {
ivy.popContext();
}
cachedIvy.setErrorMarker(null);
mds.put(request, md);
if (request.isInWorkspace()) {
List requests = (List) inworkspaceModules.get(md);
if (requests == null) {
requests = new ArrayList();