MRM-1095 - Archiva keeps scanning repositories, even if scanning disabled in the web UI. Submitted by Gwen Harold Autencio

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@747198 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James William Dumay 2009-02-23 23:24:09 +00:00
parent a8ad14acbd
commit a0da36af3c
1 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,12 @@ public class DefaultArchivaTaskScheduler
log.warn( "Skipping job, no cron expression for " + repoConfig.getId() );
return;
}
if ( !repoConfig.isScanned() )
{
log.warn( "Skipping job, repository scannable has been disabled for " + repoConfig.getId() );
return;
}
// get the cron string for these database scanning jobs
String cronString = repoConfig.getRefreshCronExpression();