new File( System.getProperty( "basedir" ), "src/test/repo-with-osgi" ).getAbsolutePath() );
repositoriesService.scanRepositoryDirectoriesNow( testRepoId );
int timeout = 20000;
while ( timeout > 0 && repositoriesService.alreadyScanning( testRepoId ) )
{
Thread.sleep( 500 );
timeout -= 500;
}