archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java
// MRM-848: Pre-configured repository initially appear to be empty
MRM-848: Pre-configured repository initially appear to be empty
MRM - 848 : Pre - configured repository initially appear to be empty
private synchronized void queueInitialRepoScan( ManagedRepositoryConfiguration repoConfig )
    {
        String repoId = repoConfig.getId();
        RepositoryTask task = new RepositoryTask();
        task.setRepositoryId( repoId );
        if ( !queuedRepos.contains( repoId ) )
        {
            log.info( "Repository [{}] is queued to be scanned as it hasn't been previously.", repoId );
            try
            {
                queuedRepos.add( repoConfig.getId() );
                this.queueTask( task );
            }
            catch ( TaskQueueException e )
            {
                log.error( "Error occurred while queueing repository [{}] task : {}", e.getMessage(), repoId );
            }
        }
    }
private synchronized void queueInitialRepoScan ( ManagedRepositoryConfiguration repoConfig ) { String repoId = repoConfig . getId ( ) ; RepositoryTask task = new RepositoryTask ( ) ; task . setRepositoryId ( repoId ) ; if ( ! queuedRepos . contains ( repoId ) ) { log . info ( "Repository [{}] is queued to be scanned as it hasn't been previously." , repoId ) ; try { queuedRepos . add ( repoConfig . getId ( ) ) ; this . queueTask ( task ) ; } catch ( TaskQueueException e ) { log . error ( "Error occurred while queueing repository [{}] task : {}" , e . getMessage ( ) , repoId ) ; } } }
MRM-848: Pre-configured repository initially appear to be empty
MRM - 848 : Pre - configured repository initially appear to be empty