mirror of https://github.com/apache/archiva.git
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:
parent
fd582b1d54
commit
eb898aefa8
|
@ -92,6 +92,7 @@ public class IndexerTask
|
||||||
private void execute( Configuration configuration, File indexPath )
|
private void execute( Configuration configuration, File indexPath )
|
||||||
throws TaskExecutionException
|
throws TaskExecutionException
|
||||||
{
|
{
|
||||||
|
long time = System.currentTimeMillis();
|
||||||
getLogger().info( "Starting repository discovery process" );
|
getLogger().info( "Starting repository discovery process" );
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -131,7 +132,8 @@ public class IndexerTask
|
||||||
throw new TaskExecutionException( e.getMessage(), e );
|
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()
|
public void executeNowIfNeeded()
|
||||||
|
|
Loading…
Reference in New Issue