ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1035623 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java
Date Tue, 16 Nov 2010 12:57:16 GMT
Author: hibou
Date: Tue Nov 16 12:57:16 2010
New Revision: 1035623

URL: http://svn.apache.org/viewvc?rev=1035623&view=rev
Log:
IVYDE-263 : avoid launching resolve on closed projects

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java?rev=1035623&r1=1035622&r2=1035623&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java
Tue Nov 16 12:57:16 2010
@@ -35,6 +35,7 @@ import org.apache.ivyde.eclipse.CachedIv
 import org.apache.ivyde.eclipse.IvyDEException;
 import org.apache.ivyde.eclipse.IvyMarkerManager;
 import org.apache.ivyde.eclipse.IvyPlugin;
+import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
@@ -106,6 +107,12 @@ public class IvyResolveJob extends Job {
             while (itRequests.hasNext()) {
                 ResolveRequest request = (ResolveRequest) itRequests.next();
                 monitor.subTask("loading " + request.getResolver().toString());
+                IProject project = request.getResolver().getProject();
+                if (!project.isAccessible()) {
+                    // closed project, skip it
+                    monitor.worked(step);
+                    continue;
+                }
                 CachedIvy cachedIvy = request.getCachedIvy();
                 Ivy ivy;
                 try {



Mime
View raw message