import javax.inject.Inject;
import java.io.File;
import java.io.IOException;
+import java.util.Arrays;
/**
* ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing artifacts from the index are
{
try
{
+ long start = System.currentTimeMillis();
nexusIndexer.scan( context, null, indexingTask.isOnlyUpdate() );
+ long end = System.currentTimeMillis();
+ log.info( "indexed maven repository: {}, onlyUpdate: {}, time {} ms",
+ Arrays.asList( repository.getId(), indexingTask.isOnlyUpdate(), ( end - start ) ).toArray(
+ new Object[3] ) );
}
catch ( IOException e )
{