ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r992787 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolveJob.java
Date Sun, 05 Sep 2010 14:04:51 GMT
Author: hibou
Date: Sun Sep  5 14:04:50 2010
New Revision: 992787

URL: http://svn.apache.org/viewvc?rev=992787&view=rev
Log:
Add some sub task name

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=992787&r1=992786&r2=992787&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
Sun Sep  5 14:04:50 2010
@@ -85,7 +85,7 @@ public class IvyResolveJob extends Job {
             resolveQueue.clear();
         }
 
-        monitor.beginTask("Loading ivy descriptors...", MONITOR_LENGTH);
+        monitor.beginTask("Loading ivy descriptors", MONITOR_LENGTH);
 
         Map/* <ModuleDescriptor, ResolveRequest> */inworkspaceModules = new LinkedHashMap();
         List/* <ResolveRequest> */otherModules = new ArrayList();
@@ -105,6 +105,7 @@ public class IvyResolveJob extends Job {
             Iterator itRequests = toResolve.iterator();
             while (itRequests.hasNext()) {
                 ResolveRequest request = (ResolveRequest) itRequests.next();
+                monitor.subTask("loading " + request.getResolver().toString());
                 CachedIvy cachedIvy = request.getCachedIvy();
                 Ivy ivy;
                 try {
@@ -193,10 +194,13 @@ public class IvyResolveJob extends Job {
 
         step = POST_RESOLVE_LENGTH / toResolve.size();
 
+        monitor.setTaskName("Post resolve");
+
         // launch every post batch resolve
         Iterator itRequests = toResolve.iterator();
         while (itRequests.hasNext()) {
             ResolveRequest request = (ResolveRequest) itRequests.next();
+            monitor.setTaskName(request.getResolver().toString());
             request.getResolver().postBatchResolve();
             monitor.worked(step);
         }



Mime
View raw message