mirror of
https://github.com/apache/archiva.git
synced 2025-02-23 02:56:38 +00:00
tidy up
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@430725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b3454c564
commit
58487e05b0
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user