show how long indexing took

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@424593 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-07-22 15:14:21 +00:00
parent fd582b1d54
commit eb898aefa8
1 changed files with 3 additions and 1 deletions

View File

@ -92,6 +92,7 @@ public class IndexerTask
private void execute( Configuration configuration, File indexPath )
throws TaskExecutionException
{
long time = System.currentTimeMillis();
getLogger().info( "Starting repository discovery process" );
try
@ -131,7 +132,8 @@ public class IndexerTask
throw new TaskExecutionException( e.getMessage(), e );
}
getLogger().info( "Finished repository indexing process" );
time = System.currentTimeMillis() - time;
getLogger().info( "Finished repository indexing process in " + time + "ms" );
}
public void executeNowIfNeeded()