Class Check

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
All Implemented Interfaces:
Cloneable

@NotThreadSafe public class Check extends Update
An Ant task definition to execute dependency-check during an Ant build.
Author:
Jeremy Long
  • Constructor Details

    • Check

      public Check()
      Construct a new DependencyCheckTask.
  • Method Details

    • add

      public void add(org.apache.tools.ant.types.ResourceCollection rc)
      Add an arbitrary ResourceCollection.
      Parameters:
      rc - the ResourceCollection to add.
      Since:
      Ant 1.7
    • isReference

      public boolean isReference()
      Learn whether the refId attribute of this element been set.
      Returns:
      true if refId is valid.
    • setRefId

      public void setRefId(org.apache.tools.ant.types.Reference r)
      Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere.
      Parameters:
      r - the reference to a path, fileset, dirset or filelist.
    • addConfiguredSuppressionFile

      public void addConfiguredSuppressionFile(SuppressionFile suppressionFile)
      Add a suppression file.

      This is called by Ant with the configured SuppressionFile.

      Parameters:
      suppressionFile - the suppression file to add.
    • addConfiguredReportFormat

      public void addConfiguredReportFormat(Check.ReportFormat reportFormat)
      Add a report format.

      This is called by Ant with the configured Check.ReportFormat.

      Parameters:
      reportFormat - the reportFormat to add.
    • setVersionCheckEnabled

      public void setVersionCheckEnabled(Boolean versionCheckEnabled)
      Sets whether the version check is enabled.
      Parameters:
      versionCheckEnabled - a Boolean indicating if the version check is enabled.
    • getProjectName

      public String getProjectName()
      Get the value of projectName.
      Returns:
      the value of projectName
    • setProjectName

      public void setProjectName(String projectName)
      Set the value of projectName.
      Parameters:
      projectName - new value of projectName
    • setReportOutputDirectory

      public void setReportOutputDirectory(String reportOutputDirectory)
      Set the value of reportOutputDirectory.
      Parameters:
      reportOutputDirectory - new value of reportOutputDirectory
    • setFailBuildOnCVSS

      public void setFailBuildOnCVSS(float failBuildOnCVSS)
      Set the value of failBuildOnCVSS.
      Parameters:
      failBuildOnCVSS - new value of failBuildOnCVSS
    • setJunitFailOnCVSS

      public void setJunitFailOnCVSS(float junitFailOnCVSS)
      Set the value of junitFailOnCVSS.
      Parameters:
      junitFailOnCVSS - new value of junitFailOnCVSS
    • setAutoUpdate

      public void setAutoUpdate(Boolean autoUpdate)
      Set the value of autoUpdate.
      Parameters:
      autoUpdate - new value of autoUpdate
    • setPrettyPrint

      public void setPrettyPrint(boolean prettyPrint)
      Set the value of prettyPrint.
      Parameters:
      prettyPrint - new value of prettyPrint
    • setReportFormat

      public void setReportFormat(Check.ReportFormats reportFormat)
      Set the value of reportFormat.
      Parameters:
      reportFormat - new value of reportFormat
    • getReportFormats

      public List<String> getReportFormats()
      Get the value of reportFormats.
      Returns:
      the value of reportFormats
    • setSuppressionFile

      public void setSuppressionFile(String suppressionFile)
      Set the value of suppressionFile.
      Parameters:
      suppressionFile - new value of suppressionFile
    • setSuppressionFileUser

      public void setSuppressionFileUser(String suppressionFileUser)
      Sets the username to download user-authored suppression files from an HTTP Basic auth protected location.
      Parameters:
      suppressionFileUser - The username
    • setSuppressionFilePassword

      public void setSuppressionFilePassword(String suppressionFilePassword)
      Sets the password/token to download user-authored suppression files from an HTTP Basic auth protected location.
      Parameters:
      suppressionFilePassword - The password/token
    • setSuppressionFileBearerToken

      public void setSuppressionFileBearerToken(String suppressionFileBearerToken)
      Sets the token to download user-authored suppression files from an HTTP Bearer auth protected location.
      Parameters:
      suppressionFileBearerToken - The token
    • setHintsFile

      public void setHintsFile(String hintsFile)
      Set the value of hintsFile.
      Parameters:
      hintsFile - new value of hintsFile
    • setShowSummary

      public void setShowSummary(boolean showSummary)
      Set the value of showSummary.
      Parameters:
      showSummary - new value of showSummary
    • setEnableExperimental

      public void setEnableExperimental(Boolean enableExperimental)
      Set the value of enableExperimental.
      Parameters:
      enableExperimental - new value of enableExperimental
    • setEnableRetired

      public void setEnableRetired(Boolean enableRetired)
      Set the value of enableRetired.
      Parameters:
      enableRetired - new value of enableRetired
    • setJarAnalyzerEnabled

      public void setJarAnalyzerEnabled(Boolean jarAnalyzerEnabled)
      Sets whether or not the analyzer is enabled.
      Parameters:
      jarAnalyzerEnabled - the value of the new setting
    • setArchiveAnalyzerEnabled

      public void setArchiveAnalyzerEnabled(Boolean archiveAnalyzerEnabled)
      Sets whether the analyzer is enabled.
      Parameters:
      archiveAnalyzerEnabled - the value of the new setting
    • setAssemblyAnalyzerEnabled

      public void setAssemblyAnalyzerEnabled(Boolean assemblyAnalyzerEnabled)
      Sets whether or not the analyzer is enabled.
      Parameters:
      assemblyAnalyzerEnabled - the value of the new setting
    • setMSBuildAnalyzerEnabled

      public void setMSBuildAnalyzerEnabled(Boolean msbuildAnalyzerEnabled)
      Sets whether or not the analyzer is enabled.
      Parameters:
      msbuildAnalyzerEnabled - the value of the new setting
    • setNuspecAnalyzerEnabled

      public void setNuspecAnalyzerEnabled(Boolean nuspecAnalyzerEnabled)
      Sets whether or not the analyzer is enabled.
      Parameters:
      nuspecAnalyzerEnabled - the value of the new setting
    • setNugetconfAnalyzerEnabled

      public void setNugetconfAnalyzerEnabled(Boolean nugetconfAnalyzerEnabled)
      Sets whether or not the analyzer is enabled.
      Parameters:
      nugetconfAnalyzerEnabled - the value of the new setting
    • setLibmanAnalyzerEnabled

      public void setLibmanAnalyzerEnabled(Boolean libmanAnalyzerEnabled)
      Sets whether or not the analyzer is enabled.
      Parameters:
      libmanAnalyzerEnabled - the value of the new setting
    • setComposerAnalyzerEnabled

      public void setComposerAnalyzerEnabled(Boolean composerAnalyzerEnabled)
      Set the value of composerAnalyzerEnabled.
      Parameters:
      composerAnalyzerEnabled - new value of composerAnalyzerEnabled
    • setComposerAnalyzerSkipDev

      public void setComposerAnalyzerSkipDev(Boolean composerAnalyzerSkipDev)
      Set the value of composerAnalyzerSkipDev.
      Parameters:
      composerAnalyzerSkipDev - new value of composerAnalyzerSkipDev
    • setCpanfileAnalyzerEnabled

      public void setCpanfileAnalyzerEnabled(Boolean cpanfileAnalyzerEnabled)
      Set the value of cpanfileAnalyzerEnabled.
      Parameters:
      cpanfileAnalyzerEnabled - new value of cpanfileAnalyzerEnabled
    • setAutoconfAnalyzerEnabled

      public void setAutoconfAnalyzerEnabled(Boolean autoconfAnalyzerEnabled)
      Set the value of autoconfAnalyzerEnabled.
      Parameters:
      autoconfAnalyzerEnabled - new value of autoconfAnalyzerEnabled
    • setPipAnalyzerEnabled

      public void setPipAnalyzerEnabled(Boolean pipAnalyzerEnabled)
      Set the value of pipAnalyzerEnabled.
      Parameters:
      pipAnalyzerEnabled - new value of pipAnalyzerEnabled
    • setPipfileAnalyzerEnabled

      public void setPipfileAnalyzerEnabled(Boolean pipfileAnalyzerEnabled)
      Set the value of pipfileAnalyzerEnabled.
      Parameters:
      pipfileAnalyzerEnabled - new value of pipfileAnalyzerEnabled
    • setPoetryAnalyzerEnabled

      public void setPoetryAnalyzerEnabled(Boolean poetryAnalyzerEnabled)
      Set the value of poetryAnalyzerEnabled.
      Parameters:
      poetryAnalyzerEnabled - new value of poetryAnalyzerEnabled
    • setBundleAuditAnalyzerEnabled

      public void setBundleAuditAnalyzerEnabled(Boolean bundleAuditAnalyzerEnabled)
      Sets if the Bundle Audit Analyzer is enabled.
      Parameters:
      bundleAuditAnalyzerEnabled - whether or not the analyzer should be enabled
    • setBundleAuditPath

      public void setBundleAuditPath(String bundleAuditPath)
      Sets the path to the bundle audit executable.
      Parameters:
      bundleAuditPath - the path to the bundle audit executable
    • setBundleAuditWorkingDirectory

      public void setBundleAuditWorkingDirectory(String bundleAuditWorkingDirectory)
      Sets the path to the working directory that the bundle audit executable should be executed from.
      Parameters:
      bundleAuditWorkingDirectory - the path to the working directory that the bundle audit executable should be executed from.
    • setCocoapodsAnalyzerEnabled

      public void setCocoapodsAnalyzerEnabled(Boolean cocoapodsAnalyzerEnabled)
      Sets whether or not the cocoapods analyzer is enabled.
      Parameters:
      cocoapodsAnalyzerEnabled - the state of the cocoapods analyzer
    • setCarthageAnalyzerEnabled

      public void setCarthageAnalyzerEnabled(Boolean carthageAnalyzerEnabled)
      Sets whether or not the Carthage analyzer is enabled.
      Parameters:
      carthageAnalyzerEnabled - the state of the Carthage analyzer
    • setSwiftPackageManagerAnalyzerEnabled

      public void setSwiftPackageManagerAnalyzerEnabled(Boolean swiftPackageManagerAnalyzerEnabled)
      Sets the enabled state of the swift package manager analyzer.
      Parameters:
      swiftPackageManagerAnalyzerEnabled - the enabled state of the swift package manager
    • setSwiftPackageResolvedAnalyzerEnabled

      public void setSwiftPackageResolvedAnalyzerEnabled(Boolean swiftPackageResolvedAnalyzerEnabled)
      Sets the enabled state of the swift package manager analyzer.
      Parameters:
      swiftPackageResolvedAnalyzerEnabled - the enabled state of the swift package resolved analyzer
    • setOpensslAnalyzerEnabled

      public void setOpensslAnalyzerEnabled(Boolean opensslAnalyzerEnabled)
      Set the value of opensslAnalyzerEnabled.
      Parameters:
      opensslAnalyzerEnabled - new value of opensslAnalyzerEnabled
    • setNodeAnalyzerEnabled

      public void setNodeAnalyzerEnabled(Boolean nodeAnalyzerEnabled)
      Set the value of nodeAnalyzerEnabled.
      Parameters:
      nodeAnalyzerEnabled - new value of nodeAnalyzerEnabled
    • setNodeAuditAnalyzerEnabled

      public void setNodeAuditAnalyzerEnabled(Boolean nodeAuditAnalyzerEnabled)
      Set the value of nodeAuditAnalyzerEnabled.
      Parameters:
      nodeAuditAnalyzerEnabled - new value of nodeAuditAnalyzerEnabled
    • setYarnAuditAnalyzerEnabled

      public void setYarnAuditAnalyzerEnabled(Boolean yarnAuditAnalyzerEnabled)
      Set the value of yarnAuditAnalyzerEnabled.
      Parameters:
      yarnAuditAnalyzerEnabled - new value of yarnAuditAnalyzerEnabled
    • setPnpmAuditAnalyzerEnabled

      public void setPnpmAuditAnalyzerEnabled(Boolean pnpmAuditAnalyzerEnabled)
      Set the value of pnpmAuditAnalyzerEnabled.
      Parameters:
      pnpmAuditAnalyzerEnabled - new value of pnpmAuditAnalyzerEnabled
    • setNodeAuditAnalyzerUseCache

      public void setNodeAuditAnalyzerUseCache(Boolean nodeAuditAnalyzerUseCache)
      Set the value of nodeAuditAnalyzerUseCache.
      Parameters:
      nodeAuditAnalyzerUseCache - new value of nodeAuditAnalyzerUseCache
    • setNodePackageSkipDevDependencies

      public void setNodePackageSkipDevDependencies(Boolean nodePackageSkipDevDependencies)
      Set the value of nodePackageSkipDevDependencies.
      Parameters:
      nodePackageSkipDevDependencies - new value of nodePackageSkipDevDependencies
    • setNodeAuditSkipDevDependencies

      public void setNodeAuditSkipDevDependencies(Boolean nodeAuditSkipDevDependencies)
      Set the value of nodeAuditSkipDevDependencies.
      Parameters:
      nodeAuditSkipDevDependencies - new value of nodeAuditSkipDevDependencies
    • setRetirejsFilterNonVulnerable

      @Deprecated public void setRetirejsFilterNonVulnerable(Boolean retireJsFilterNonVulnerable)
      Deprecated.
      Set the value of retirejsFilterNonVulnerable.
      Parameters:
      retireJsFilterNonVulnerable - new value of retirejsFilterNonVulnerable
    • setRetireJsFilterNonVulnerable

      public void setRetireJsFilterNonVulnerable(Boolean retireJsFilterNonVulnerable)
      Set the value of retireJsFilterNonVulnerable.
      Parameters:
      retireJsFilterNonVulnerable - new value of retireJsFilterNonVulnerable
    • addConfiguredRetirejsFilter

      @Deprecated public void addConfiguredRetirejsFilter(RetirejsFilter retireJsFilter)
      Add a regular expression to the set of retire JS content filters.

      This is called by Ant.

      Parameters:
      retireJsFilter - the regular expression used to filter based on file content
    • addConfiguredRetireJsFilter

      public void addConfiguredRetireJsFilter(RetirejsFilter retireJsFilter)
      Add a regular expression to the set of retire JS content filters.

      This is called by Ant.

      Parameters:
      retireJsFilter - the regular expression used to filter based on file content
    • setRubygemsAnalyzerEnabled

      public void setRubygemsAnalyzerEnabled(Boolean rubygemsAnalyzerEnabled)
      Set the value of rubygemsAnalyzerEnabled.
      Parameters:
      rubygemsAnalyzerEnabled - new value of rubygemsAnalyzerEnabled
    • setPyPackageAnalyzerEnabled

      public void setPyPackageAnalyzerEnabled(Boolean pyPackageAnalyzerEnabled)
      Set the value of pyPackageAnalyzerEnabled.
      Parameters:
      pyPackageAnalyzerEnabled - new value of pyPackageAnalyzerEnabled
    • setPyDistributionAnalyzerEnabled

      public void setPyDistributionAnalyzerEnabled(Boolean pyDistributionAnalyzerEnabled)
      Set the value of pyDistributionAnalyzerEnabled.
      Parameters:
      pyDistributionAnalyzerEnabled - new value of pyDistributionAnalyzerEnabled
    • setMixAuditAnalyzerEnabled

      public void setMixAuditAnalyzerEnabled(Boolean mixAuditAnalyzerEnabled)
      Set the value of mixAuditAnalyzerEnabled.
      Parameters:
      mixAuditAnalyzerEnabled - new value of mixAuditAnalyzerEnabled
    • setMixAuditPath

      public void setMixAuditPath(String mixAuditPath)
      Sets the path to the mix audit executable.
      Parameters:
      mixAuditPath - the path to the bundle audit executable
    • setCentralAnalyzerEnabled

      public void setCentralAnalyzerEnabled(Boolean centralAnalyzerEnabled)
      Set the value of centralAnalyzerEnabled.
      Parameters:
      centralAnalyzerEnabled - new value of centralAnalyzerEnabled
    • setCentralAnalyzerUseCache

      public void setCentralAnalyzerUseCache(Boolean centralAnalyzerUseCache)
      Set the value of centralAnalyzerUseCache.
      Parameters:
      centralAnalyzerUseCache - new value of centralAnalyzerUseCache
    • setNexusAnalyzerEnabled

      public void setNexusAnalyzerEnabled(Boolean nexusAnalyzerEnabled)
      Set the value of nexusAnalyzerEnabled.
      Parameters:
      nexusAnalyzerEnabled - new value of nexusAnalyzerEnabled
    • setGolangDepEnabled

      public void setGolangDepEnabled(Boolean golangDepEnabled)
      Set the value of golangDepEnabled.
      Parameters:
      golangDepEnabled - new value of golangDepEnabled
    • setGolangModEnabled

      public void setGolangModEnabled(Boolean golangModEnabled)
      Set the value of golangModEnabled.
      Parameters:
      golangModEnabled - new value of golangModEnabled
    • setDartAnalyzerEnabled

      public void setDartAnalyzerEnabled(Boolean dartAnalyzerEnabled)
      Set the value of dartAnalyzerEnabled.
      Parameters:
      dartAnalyzerEnabled - new value of dartAnalyzerEnabled
    • setPathToYarn

      public void setPathToYarn(String pathToYarn)
      Set the value of pathToYarn.
      Parameters:
      pathToYarn - new value of pathToYarn
    • setPathToPnpm

      public void setPathToPnpm(String pathToPnpm)
      Set the value of pathToPnpm.
      Parameters:
      pathToPnpm - new value of pathToPnpm
    • setPathToGo

      public void setPathToGo(String pathToGo)
      Set the value of pathToGo.
      Parameters:
      pathToGo - new value of pathToGo
    • setNexusUrl

      public void setNexusUrl(String nexusUrl)
      Set the value of nexusUrl.
      Parameters:
      nexusUrl - new value of nexusUrl
    • setNexusUser

      public void setNexusUser(String nexusUser)
      Set the value of nexusUser.
      Parameters:
      nexusUser - new value of nexusUser
    • setNexusPassword

      public void setNexusPassword(String nexusPassword)
      Set the value of nexusPassword.
      Parameters:
      nexusPassword - new value of nexusPassword
    • setNexusUsesProxy

      public void setNexusUsesProxy(Boolean nexusUsesProxy)
      Set the value of nexusUsesProxy.
      Parameters:
      nexusUsesProxy - new value of nexusUsesProxy
    • setZipExtensions

      public void setZipExtensions(String zipExtensions)
      Set the value of zipExtensions.
      Parameters:
      zipExtensions - new value of zipExtensions
    • setPathToDotnetCore

      public void setPathToDotnetCore(String pathToCore)
      Set the value of pathToCore.
      Parameters:
      pathToCore - new value of pathToCore
    • setOssindexAnalyzerEnabled

      @Deprecated public void setOssindexAnalyzerEnabled(Boolean ossIndexAnalyzerEnabled)
      Deprecated.
      Set value of ossIndexAnalyzerEnabled.
      Parameters:
      ossIndexAnalyzerEnabled - new value of ossIndexAnalyzerEnabled
    • setOssIndexAnalyzerEnabled

      public void setOssIndexAnalyzerEnabled(Boolean ossIndexAnalyzerEnabled)
      Set value of ossIndexAnalyzerEnabled.
      Parameters:
      ossIndexAnalyzerEnabled - new value of ossIndexAnalyzerEnabled
    • setOssindexAnalyzerUseCache

      @Deprecated public void setOssindexAnalyzerUseCache(Boolean ossIndexAnalyzerUseCache)
      Deprecated.
      Set value of ossIndexAnalyzerUseCache.
      Parameters:
      ossIndexAnalyzerUseCache - new value of ossIndexAnalyzerUseCache
    • setOssIndexAnalyzerUseCache

      public void setOssIndexAnalyzerUseCache(Boolean ossIndexAnalyzerUseCache)
      Set value of ossIndexAnalyzerUseCache.
      Parameters:
      ossIndexAnalyzerUseCache - new value of ossIndexAnalyzerUseCache
    • setOssIndexAnalyzerCacheValidForHours

      public void setOssIndexAnalyzerCacheValidForHours(Integer ossIndexAnalyzerCacheValidForHours)
      Set value of ossIndexAnalyzerCacheValidForHours.
      Parameters:
      ossIndexAnalyzerCacheValidForHours - new value of ossIndexAnalyzerCacheValidForHours
    • setOssindexAnalyzerUrl

      @Deprecated public void setOssindexAnalyzerUrl(String ossIndexAnalyzerUrl)
      Deprecated.
      Set value of ossIndexAnalyzerUrl.
      Parameters:
      ossIndexAnalyzerUrl - new value of ossIndexAnalyzerUrl
    • setOssIndexAnalyzerUrl

      public void setOssIndexAnalyzerUrl(String ossIndexAnalyzerUrl)
      Set value of ossIndexAnalyzerUrl.
      Parameters:
      ossIndexAnalyzerUrl - new value of ossIndexAnalyzerUrl
    • setOssindexAnalyzerUsername

      @Deprecated public void setOssindexAnalyzerUsername(String ossIndexAnalyzerUsername)
      Deprecated.
      Set value of ossIndexAnalyzerUsername.
      Parameters:
      ossIndexAnalyzerUsername - new value of ossIndexAnalyzerUsername
    • setOssIndexAnalyzerUsername

      public void setOssIndexAnalyzerUsername(String ossIndexAnalyzerUsername)
      Set value of ossIndexAnalyzerUsername.
      Parameters:
      ossIndexAnalyzerUsername - new value of ossIndexAnalyzerUsername
    • setOssindexAnalyzerPassword

      @Deprecated public void setOssindexAnalyzerPassword(String ossIndexAnalyzerPassword)
      Deprecated.
      Set value of ossIndexAnalyzerPassword.
      Parameters:
      ossIndexAnalyzerPassword - new value of ossIndexAnalyzerPassword
    • setOssIndexAnalyzerPassword

      public void setOssIndexAnalyzerPassword(String ossIndexAnalyzerPassword)
      Set value of ossIndexAnalyzerPassword.
      Parameters:
      ossIndexAnalyzerPassword - new value of ossIndexAnalyzerPassword
    • setOssIndexWarnOnlyOnRemoteErrors

      public void setOssIndexWarnOnlyOnRemoteErrors(Boolean ossIndexWarnOnlyOnRemoteErrors)
      Set value of ossIndexAnalyzerWarnOnlyOnRemoteErrors.
      Parameters:
      ossIndexWarnOnlyOnRemoteErrors - the value of ossIndexWarnOnlyOnRemoteErrors
    • setCmakeAnalyzerEnabled

      public void setCmakeAnalyzerEnabled(Boolean cmakeAnalyzerEnabled)
      Set the value of cmakeAnalyzerEnabled.
      Parameters:
      cmakeAnalyzerEnabled - new value of cmakeAnalyzerEnabled
    • setArtifactoryAnalyzerEnabled

      public void setArtifactoryAnalyzerEnabled(Boolean artifactoryAnalyzerEnabled)
      Set the value of artifactoryAnalyzerEnabled.
      Parameters:
      artifactoryAnalyzerEnabled - new value of artifactoryAnalyzerEnabled
    • setArtifactoryAnalyzerUrl

      public void setArtifactoryAnalyzerUrl(String artifactoryAnalyzerUrl)
      Set the value of artifactoryAnalyzerUrl.
      Parameters:
      artifactoryAnalyzerUrl - new value of artifactoryAnalyzerUrl
    • setArtifactoryAnalyzerUseProxy

      public void setArtifactoryAnalyzerUseProxy(Boolean artifactoryAnalyzerUseProxy)
      Set the value of artifactoryAnalyzerUseProxy.
      Parameters:
      artifactoryAnalyzerUseProxy - new value of artifactoryAnalyzerUseProxy
    • setArtifactoryAnalyzerParallelAnalysis

      public void setArtifactoryAnalyzerParallelAnalysis(Boolean artifactoryAnalyzerParallelAnalysis)
      Set the value of artifactoryAnalyzerParallelAnalysis.
      Parameters:
      artifactoryAnalyzerParallelAnalysis - new value of artifactoryAnalyzerParallelAnalysis
    • setArtifactoryAnalyzerUsername

      public void setArtifactoryAnalyzerUsername(String artifactoryAnalyzerUsername)
      Set the value of artifactoryAnalyzerUsername.
      Parameters:
      artifactoryAnalyzerUsername - new value of artifactoryAnalyzerUsername
    • setArtifactoryAnalyzerApiToken

      public void setArtifactoryAnalyzerApiToken(String artifactoryAnalyzerApiToken)
      Set the value of artifactoryAnalyzerApiToken.
      Parameters:
      artifactoryAnalyzerApiToken - new value of artifactoryAnalyzerApiToken
    • setArtifactoryAnalyzerBearerToken

      public void setArtifactoryAnalyzerBearerToken(String artifactoryAnalyzerBearerToken)
      Set the value of artifactoryAnalyzerBearerToken.
      Parameters:
      artifactoryAnalyzerBearerToken - new value of artifactoryAnalyzerBearerToken
    • setFailBuildOnUnusedSuppressionRule

      public void setFailBuildOnUnusedSuppressionRule(boolean failBuildOnUnusedSuppressionRule)
      Set the value of failBuildOnUnusedSuppressionRule.
      Parameters:
      failBuildOnUnusedSuppressionRule - new value of failBuildOnUnusedSuppressionRule
    • executeWithContextClassloader

      protected void executeWithContextClassloader() throws org.apache.tools.ant.BuildException
      Description copied from class: Update
      Executes the update by initializing the settings, downloads the NVD XML data, and then processes the data storing it in the local database.
      Overrides:
      executeWithContextClassloader in class Update
      Throws:
      org.apache.tools.ant.BuildException - thrown if a connection to the local database cannot be made.
    • populateSettings

      protected void populateSettings() throws org.apache.tools.ant.BuildException
      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.
      Overrides:
      populateSettings in class Update
      Throws:
      org.apache.tools.ant.BuildException - thrown when an invalid setting is configured.