maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject cvs commit: maven-components/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean RepositoryCleaner.java
Date Thu, 07 Apr 2005 16:37:19 GMT
jdcasey     2005/04/07 09:37:19

  Modified:    sandbox/repoclean/src/main/resources/META-INF/plexus
                        components.xml
               sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean
                        RepositoryCleaner.java
  Log:
  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.
  
  Revision  Changes    Path
  1.6       +3 -0      maven-components/sandbox/repoclean/src/main/resources/META-INF/plexus/components.xml
  
  Index: components.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/sandbox/repoclean/src/main/resources/META-INF/plexus/components.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- components.xml	2 Apr 2005 02:17:19 -0000	1.5
  +++ components.xml	7 Apr 2005 16:37:18 -0000	1.6
  @@ -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>
       <!--
  
  
  
  1.11      +7 -2      maven-components/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java
  
  Index: RepositoryCleaner.java
  ===================================================================
  RCS file: /home/cvs/maven-components/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- RepositoryCleaner.java	6 Apr 2005 20:15:07 -0000	1.10
  +++ RepositoryCleaner.java	7 Apr 2005 16:37:18 -0000	1.11
  @@ -241,8 +241,10 @@
   
           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 @@
   
                       if ( artifactSource.exists() && targetMissingOrOlder )
                       {
  -
  +                        actualRewriteCount++;
  +                        
                           try
                           {
                               if ( !configuration.reportOnly() )
  @@ -370,6 +373,8 @@
                       }
                   }
               }
  +            
  +            logger.info("Actual number of artifacts rewritten: " + actualRewriteCount +
" (" + (actualRewriteCount * 2) + " including POMs).");
           }
           finally
           {
  
  
  

Mime
View raw message