git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@430725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-08-11 08:37:35 +00:00
parent 1b3454c564
commit 58487e05b0

View File

@ -119,7 +119,7 @@ private void execute( Configuration configuration, File indexPath )
if ( !artifacts.isEmpty() )
{
getLogger().info( "Indexing " + artifacts.size() + " new artifacts" );
indexArtifact( artifacts, indexPath );
indexArtifacts( artifacts, indexPath );
}
}
}
@ -166,16 +166,17 @@ public void executeNowIfNeeded()
}
}
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 );
}
}