]> source.dussan.org Git - archiva.git/commitdiff
tidy up
authorBrett Porter <brett@apache.org>
Fri, 11 Aug 2006 08:37:35 +0000 (08:37 +0000)
committerBrett Porter <brett@apache.org>
Fri, 11 Aug 2006 08:37:35 +0000 (08:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@430725 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-core/src/main/java/org/apache/maven/repository/scheduler/IndexerTask.java

index abc2b761d51355b8e443932ef038205e00754c22..38b43a0ac9416967429c45f78a6608c314b97458 100644 (file)
@@ -119,7 +119,7 @@ public class IndexerTask
                     if ( !artifacts.isEmpty() )
                     {
                         getLogger().info( "Indexing " + artifacts.size() + " new artifacts" );
-                        indexArtifact( artifacts, indexPath );
+                        indexArtifacts( artifacts, indexPath );
                     }
                 }
             }
@@ -166,16 +166,17 @@ public class IndexerTask
         }
     }
 
-    private void indexArtifact( List artifacts, File indexPath )
+    private void indexArtifacts( List artifacts, File indexPath )
         throws RepositoryIndexException
     {
-        RepositoryArtifactIndex artifactIndex = indexFactory.createStandardIndex( indexPath );
         List records = new ArrayList();
         for ( Iterator i = artifacts.iterator(); i.hasNext(); )
         {
             Artifact a = (Artifact) i.next();
             records.add( recordFactory.createRecord( a ) );
         }
+
+        RepositoryArtifactIndex artifactIndex = indexFactory.createStandardIndex( indexPath );
         artifactIndex.indexRecords( records );
     }
 }