throws RepositoryAdminException
{
+ IndexingContext context = indexer.getIndexingContexts().get( repository.getId() );
+
+ if ( context != null )
+ {
+ log.debug( "skip adding repository indexingContent with id {} as already exists", repository.getId() );
+ return context;
+ }
+
// take care first about repository location as can be relative
File repositoryDirectory = new File( repository.getLocation() );
try
{
- IndexingContext context = indexer.getIndexingContexts().get( repository.getId() );
- if ( context != null )
- {
- log.debug( "skip adding repository indexingContent with id {} as already exists", repository.getId() );
- return context;
- }
String indexDir = repository.getIndexDirectory();
File managedRepository = new File( repository.getLocation() );