@Scheduled(cron = "${deployer.main.targets.scan.scheduling.cron}")
    public void scanTargets() {
        try {
            targetService.resolveTargets();
        } catch (DeployerException e) {
            logger.error("Scheduled target scan failed", e);
        }
    }
@ Scheduled ( cron = "${deployer.main.targets.scan.scheduling.cron}" ) public void scanTargets ( ) { try { targetService . resolveTargets ( ) ; } catch ( DeployerException e ) { logger . error ( "Scheduled target scan failed" , e ) ; } }
Scans for new/updated targets.