Package org.apache.ivyde.internal.eclipse

Examples of org.apache.ivyde.internal.eclipse.CachedIvy


                    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();
View Full Code Here

TOP

Related Classes of org.apache.ivyde.internal.eclipse.CachedIvy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.