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
This commit is contained in:
John Dennis Casey 2005-04-07 16:37:18 +00:00
parent e8ecf5e902
commit 793d10f7d2
2 changed files with 10 additions and 2 deletions

View File

@ -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,6 +268,7 @@ public class RepositoryCleaner
if ( artifactSource.exists() && targetMissingOrOlder )
{
actualRewriteCount++;
try
{
@ -370,6 +373,8 @@ public class RepositoryCleaner
}
}
}
logger.info("Actual number of artifacts rewritten: " + actualRewriteCount + " (" + (actualRewriteCount * 2) + " including POMs).");
}
finally
{

View File

@ -102,6 +102,9 @@
<requirement>
<role>org.apache.maven.tools.repoclean.digest.ArtifactDigestVerifier</role>
</requirement>
<requirement>
<role>org.codehaus.plexus.mailsender.MailSender</role>
</requirement>
</requirements>
</component>
<!--