dependency-check-ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java
/**
     * Takes the properties supplied and updates the dependency-check settings.
     * Additionally, this sets the system properties required to change the
     * proxy server, port, and connection timeout.
     *
     * @throws BuildException thrown when an invalid setting is configured.
     */
Takes the properties supplied and updates the dependency-check settings.
Additionally, this sets the system properties required to change the
proxy server, port, and connection timeout.

@throws BuildException thrown when an invalid setting is configured.
Takes the properties supplied and updates the dependency - check settings . Additionally this sets the system properties required to change the proxy server port and connection timeout . @throws BuildException thrown when an invalid setting is configured .
@Override
    protected void populateSettings() throws BuildException {
        super.populateSettings();
        Settings.setBooleanIfNotNull(Settings.KEYS.AUTO_UPDATE, autoUpdate);
        Settings.setArrayIfNotEmpty(Settings.KEYS.SUPPRESSION_FILE, suppressionFiles.toArray(new String[suppressionFiles.size()]));
        Settings.setStringIfNotEmpty(Settings.KEYS.HINTS_FILE, hintsFile);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_EXPERIMENTAL_ENABLED, enableExperimental);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_JAR_ENABLED, jarAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_PYTHON_DISTRIBUTION_ENABLED, pyDistributionAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_PYTHON_PACKAGE_ENABLED, pyPackageAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_RUBY_GEMSPEC_ENABLED, rubygemsAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_OPENSSL_ENABLED, opensslAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_CMAKE_ENABLED, cmakeAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_SWIFT_PACKAGE_MANAGER_ENABLED, swiftPackageManagerAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_COCOAPODS_ENABLED, cocoapodsAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_BUNDLE_AUDIT_ENABLED, bundleAuditAnalyzerEnabled);
        Settings.setStringIfNotNull(Settings.KEYS.ANALYZER_BUNDLE_AUDIT_PATH, bundleAuditPath);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_AUTOCONF_ENABLED, autoconfAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_COMPOSER_LOCK_ENABLED, composerAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_NODE_PACKAGE_ENABLED, nodeAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_NSP_PACKAGE_ENABLED, nspAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_NUSPEC_ENABLED, nuspecAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_CENTRAL_ENABLED, centralAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_NEXUS_ENABLED, nexusAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_ARCHIVE_ENABLED, archiveAnalyzerEnabled);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_ASSEMBLY_ENABLED, assemblyAnalyzerEnabled);
        Settings.setStringIfNotEmpty(Settings.KEYS.ANALYZER_NEXUS_URL, nexusUrl);
        Settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_NEXUS_USES_PROXY, nexusUsesProxy);
        Settings.setStringIfNotEmpty(Settings.KEYS.ADDITIONAL_ZIP_EXTENSIONS, zipExtensions);
        Settings.setStringIfNotEmpty(Settings.KEYS.ANALYZER_ASSEMBLY_MONO_PATH, pathToMono);
    }
@ Override protected void populateSettings ( ) throws BuildException { super . populateSettings ( ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . AUTO_UPDATE , autoUpdate ) ; Settings . setArrayIfNotEmpty ( Settings . KEYS . SUPPRESSION_FILE , suppressionFiles . toArray ( new String [ suppressionFiles . size ( ) ] ) ) ; Settings . setStringIfNotEmpty ( Settings . KEYS . HINTS_FILE , hintsFile ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_EXPERIMENTAL_ENABLED , enableExperimental ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_JAR_ENABLED , jarAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_PYTHON_DISTRIBUTION_ENABLED , pyDistributionAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_PYTHON_PACKAGE_ENABLED , pyPackageAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_RUBY_GEMSPEC_ENABLED , rubygemsAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_OPENSSL_ENABLED , opensslAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_CMAKE_ENABLED , cmakeAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_SWIFT_PACKAGE_MANAGER_ENABLED , swiftPackageManagerAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_COCOAPODS_ENABLED , cocoapodsAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_BUNDLE_AUDIT_ENABLED , bundleAuditAnalyzerEnabled ) ; Settings . setStringIfNotNull ( Settings . KEYS . ANALYZER_BUNDLE_AUDIT_PATH , bundleAuditPath ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_AUTOCONF_ENABLED , autoconfAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_COMPOSER_LOCK_ENABLED , composerAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_NODE_PACKAGE_ENABLED , nodeAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_NSP_PACKAGE_ENABLED , nspAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_NUSPEC_ENABLED , nuspecAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_CENTRAL_ENABLED , centralAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_NEXUS_ENABLED , nexusAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_ARCHIVE_ENABLED , archiveAnalyzerEnabled ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_ASSEMBLY_ENABLED , assemblyAnalyzerEnabled ) ; Settings . setStringIfNotEmpty ( Settings . KEYS . ANALYZER_NEXUS_URL , nexusUrl ) ; Settings . setBooleanIfNotNull ( Settings . KEYS . ANALYZER_NEXUS_USES_PROXY , nexusUsesProxy ) ; Settings . setStringIfNotEmpty ( Settings . KEYS . ADDITIONAL_ZIP_EXTENSIONS , zipExtensions ) ; Settings . setStringIfNotEmpty ( Settings . KEYS . ANALYZER_ASSEMBLY_MONO_PATH , pathToMono ) ; }
Takes the properties supplied and updates the dependency-check settings.
Takes the properties supplied and updates the dependency - check settings .