@@ -947,10 +947,10 @@ public void prepareIndexer(RuntimeEnvironment env,
947
947
948
948
if (searchRepositories || listRepoPaths || !zapCache .isEmpty ()) {
949
949
LOGGER .log (Level .INFO , "Scanning for repositories..." );
950
- long start = System . currentTimeMillis ();
950
+ Statistics stats = new Statistics ();
951
951
env .setRepositories (env .getSourceRootPath ());
952
- long time = ( System . currentTimeMillis () - start ) / 1000 ;
953
- LOGGER . log ( Level . INFO , "Done scanning for repositories ({0}s)" , time );
952
+ stats . report ( LOGGER , String . format ( "Done scanning for repositories, found %d repositories" ,
953
+ env . getRepositories (). size ()) );
954
954
955
955
if (listRepoPaths || !zapCache .isEmpty ()) {
956
956
List <RepositoryInfo > repos = env .getRepositories ();
@@ -963,7 +963,7 @@ public void prepareIndexer(RuntimeEnvironment env,
963
963
System .out .println ("Repositories in " + prefix + ":" );
964
964
for (RepositoryInfo info : env .getRepositories ()) {
965
965
String dir = info .getDirectoryName ();
966
- System .out .println (dir .substring (prefix .length ()));
966
+ System .out .println (String . format ( "%s (%s)" , dir .substring (prefix .length ()), info . getType ()));
967
967
}
968
968
}
969
969
if (!zapCache .isEmpty ()) {
0 commit comments