dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java
/**
     * Cycles through the cached web data sources and calls update on all of
     * them.
     *
     * @throws UpdateException thrown if the operation fails
     */
Cycles through the cached web data sources and calls update on all of
them.

@throws UpdateException thrown if the operation fails
Cycles through the cached web data sources and calls update on all of them . @throws UpdateException thrown if the operation fails
public void doUpdates() throws UpdateException {
        if (mode.isDatabseRequired()) {
            LOGGER.info("Checking for updates");
            final long updateStart = System.currentTimeMillis();
            final UpdateService service = new UpdateService(serviceClassLoader);
            final Iterator<CachedWebDataSource> iterator = service.getDataSources();
            while (iterator.hasNext()) {
                final CachedWebDataSource source = iterator.next();
                source.update();
            }
            LOGGER.info("Check for updates complete ({} ms)", System.currentTimeMillis() - updateStart);
        } else {
            LOGGER.info("Skipping update check in evidence collection mode.");
        }
    }
public void doUpdates ( ) throws UpdateException { if ( mode . isDatabseRequired ( ) ) { LOGGER . info ( "Checking for updates" ) ; final long updateStart = System . currentTimeMillis ( ) ; final UpdateService service = new UpdateService ( serviceClassLoader ) ; final Iterator < CachedWebDataSource > iterator = service . getDataSources ( ) ; while ( iterator . hasNext ( ) ) { final CachedWebDataSource source = iterator . next ( ) ; source . update ( ) ; } LOGGER . info ( "Check for updates complete ({} ms)" , System . currentTimeMillis ( ) - updateStart ) ; } else { LOGGER . info ( "Skipping update check in evidence collection mode." ) ; } }
Cycles through the cached web data sources and calls update on all of
 them.
Cycles through the cached web data sources and calls update on all of them .