From 793d10f7d2cbc84be0d3afd741dc84f9292f4f77 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Thu, 7 Apr 2005 16:37:18 +0000 Subject: [PATCH] o Fixed missing requirement in the component definition for the RepositoryCleaner (was missing requirement on MailSender) o Added a new logging message to report on the actual number of artifacts rewritten during the conversion process. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163841 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/tools/repoclean/RepositoryCleaner.java | 9 +++++++-- .../src/main/resources/META-INF/plexus/components.xml | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java b/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java index 5aaf0bdafb..41dc8e2910 100644 --- a/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java +++ b/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java @@ -241,8 +241,10 @@ public class RepositoryCleaner try { - logger.info( "Rewriting " + artifacts.size() + " artifacts (Should be " + ( artifacts.size() * 2 ) + logger.info( "Rewriting up to " + artifacts.size() + " artifacts (Should be " + ( artifacts.size() * 2 ) + " rewrites including POMs)." ); + + int actualRewriteCount = 0; for ( Iterator it = artifacts.iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); @@ -266,7 +268,8 @@ public class RepositoryCleaner if ( artifactSource.exists() && targetMissingOrOlder ) { - + actualRewriteCount++; + try { if ( !configuration.reportOnly() ) @@ -370,6 +373,8 @@ public class RepositoryCleaner } } } + + logger.info("Actual number of artifacts rewritten: " + actualRewriteCount + " (" + (actualRewriteCount * 2) + " including POMs)."); } finally { diff --git a/sandbox/repoclean/src/main/resources/META-INF/plexus/components.xml b/sandbox/repoclean/src/main/resources/META-INF/plexus/components.xml index ee91e91d98..30a45fff34 100644 --- a/sandbox/repoclean/src/main/resources/META-INF/plexus/components.xml +++ b/sandbox/repoclean/src/main/resources/META-INF/plexus/components.xml @@ -102,6 +102,9 @@ org.apache.maven.tools.repoclean.digest.ArtifactDigestVerifier + + org.codehaus.plexus.mailsender.MailSender +