maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1401132 - /maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java
Date Tue, 23 Oct 2012 00:28:47 GMT
Author: hboutemy
Date: Tue Oct 23 00:28:47 2012
New Revision: 1401132

URL: http://svn.apache.org/viewvc?rev=1401132&view=rev
Log:
added a counter when deleting artifacts

Modified:
    maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java

Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java?rev=1401132&r1=1401131&r2=1401132&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java
(original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java
Tue Oct 23 00:28:47 2012
@@ -317,9 +317,11 @@ public class PurgeLocalRepositoryMojo
     private void purgeArtifacts( Set<Artifact> artifacts )
         throws MojoFailureException
     {
+        int i = 0;
         for ( Artifact artifact : artifacts )
         {
-            verbose( "Purging artifact: " + artifact.getId() );
+            i++;
+            verbose( "Purging artifact " + i + '/' + artifacts.size() + ": " + artifact.getId()
);
 
             File deleteTarget = findDeleteTarget( artifact );
 



Mime
View raw message