Class Check
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.owasp.dependencycheck.taskdefs.Purge
org.owasp.dependencycheck.taskdefs.Update
org.owasp.dependencycheck.taskdefs.Check
- All Implemented Interfaces:
Cloneable
An Ant task definition to execute dependency-check during an Ant build.
- Author:
- Jeremy Long
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class for Ant to represent the<reportFormat format="<format>"/>nested element to define multiple report formats for the ant-task.static classAn enumeration of supported report formats: "ALL", "HTML", "XML", "CSV", "JSON", "JUNIT", "SARIF", 'JENkINS', etc.. -
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.tools.ant.types.ResourceCollection rc) Add an arbitrary ResourceCollection.voidaddConfiguredReportFormat(Check.ReportFormat reportFormat) Add a report format.voidaddConfiguredRetirejsFilter(RetirejsFilter retireJsFilter) Deprecated.voidaddConfiguredRetireJsFilter(RetirejsFilter retireJsFilter) Add a regular expression to the set of retire JS content filters.voidaddConfiguredSuppressionFile(SuppressionFile suppressionFile) Add a suppression file.protected voidExecutes the update by initializing the settings, downloads the NVD XML data, and then processes the data storing it in the local database.Get the value of projectName.Get the value of reportFormats.booleanLearn whether the refId attribute of this element been set.protected voidTakes the properties supplied and updates the dependency-check settings.voidsetArchiveAnalyzerEnabled(Boolean archiveAnalyzerEnabled) Sets whether the analyzer is enabled.voidsetArtifactoryAnalyzerApiToken(String artifactoryAnalyzerApiToken) Set the value of artifactoryAnalyzerApiToken.voidsetArtifactoryAnalyzerBearerToken(String artifactoryAnalyzerBearerToken) Set the value of artifactoryAnalyzerBearerToken.voidsetArtifactoryAnalyzerEnabled(Boolean artifactoryAnalyzerEnabled) Set the value of artifactoryAnalyzerEnabled.voidsetArtifactoryAnalyzerParallelAnalysis(Boolean artifactoryAnalyzerParallelAnalysis) Set the value of artifactoryAnalyzerParallelAnalysis.voidsetArtifactoryAnalyzerUrl(String artifactoryAnalyzerUrl) Set the value of artifactoryAnalyzerUrl.voidsetArtifactoryAnalyzerUseProxy(Boolean artifactoryAnalyzerUseProxy) Set the value of artifactoryAnalyzerUseProxy.voidsetArtifactoryAnalyzerUsername(String artifactoryAnalyzerUsername) Set the value of artifactoryAnalyzerUsername.voidsetAssemblyAnalyzerEnabled(Boolean assemblyAnalyzerEnabled) Sets whether or not the analyzer is enabled.voidsetAutoconfAnalyzerEnabled(Boolean autoconfAnalyzerEnabled) Set the value of autoconfAnalyzerEnabled.voidsetAutoUpdate(Boolean autoUpdate) Set the value of autoUpdate.voidsetBundleAuditAnalyzerEnabled(Boolean bundleAuditAnalyzerEnabled) Sets if the Bundle Audit Analyzer is enabled.voidsetBundleAuditPath(String bundleAuditPath) Sets the path to the bundle audit executable.voidsetBundleAuditWorkingDirectory(String bundleAuditWorkingDirectory) Sets the path to the working directory that the bundle audit executable should be executed from.voidsetCarthageAnalyzerEnabled(Boolean carthageAnalyzerEnabled) Sets whether or not the Carthage analyzer is enabled.voidsetCentralAnalyzerEnabled(Boolean centralAnalyzerEnabled) Set the value of centralAnalyzerEnabled.voidsetCentralAnalyzerUseCache(Boolean centralAnalyzerUseCache) Set the value of centralAnalyzerUseCache.voidsetCmakeAnalyzerEnabled(Boolean cmakeAnalyzerEnabled) Set the value of cmakeAnalyzerEnabled.voidsetCocoapodsAnalyzerEnabled(Boolean cocoapodsAnalyzerEnabled) Sets whether or not the cocoapods analyzer is enabled.voidsetComposerAnalyzerEnabled(Boolean composerAnalyzerEnabled) Set the value of composerAnalyzerEnabled.voidsetComposerAnalyzerSkipDev(Boolean composerAnalyzerSkipDev) Set the value of composerAnalyzerSkipDev.voidsetCpanfileAnalyzerEnabled(Boolean cpanfileAnalyzerEnabled) Set the value of cpanfileAnalyzerEnabled.voidsetDartAnalyzerEnabled(Boolean dartAnalyzerEnabled) Set the value of dartAnalyzerEnabled.voidsetEnableExperimental(Boolean enableExperimental) Set the value of enableExperimental.voidsetEnableRetired(Boolean enableRetired) Set the value of enableRetired.voidsetFailBuildOnCVSS(float failBuildOnCVSS) Set the value of failBuildOnCVSS.voidsetFailBuildOnUnusedSuppressionRule(boolean failBuildOnUnusedSuppressionRule) Set the value of failBuildOnUnusedSuppressionRule.voidsetGolangDepEnabled(Boolean golangDepEnabled) Set the value of golangDepEnabled.voidsetGolangModEnabled(Boolean golangModEnabled) Set the value of golangModEnabled.voidsetHintsFile(String hintsFile) Set the value of hintsFile.voidsetJarAnalyzerEnabled(Boolean jarAnalyzerEnabled) Sets whether or not the analyzer is enabled.voidsetJunitFailOnCVSS(float junitFailOnCVSS) Set the value of junitFailOnCVSS.voidsetLibmanAnalyzerEnabled(Boolean libmanAnalyzerEnabled) Sets whether or not the analyzer is enabled.voidsetMixAuditAnalyzerEnabled(Boolean mixAuditAnalyzerEnabled) Set the value of mixAuditAnalyzerEnabled.voidsetMixAuditPath(String mixAuditPath) Sets the path to the mix audit executable.voidsetMSBuildAnalyzerEnabled(Boolean msbuildAnalyzerEnabled) Sets whether or not the analyzer is enabled.voidsetNexusAnalyzerEnabled(Boolean nexusAnalyzerEnabled) Set the value of nexusAnalyzerEnabled.voidsetNexusPassword(String nexusPassword) Set the value of nexusPassword.voidsetNexusUrl(String nexusUrl) Set the value of nexusUrl.voidsetNexusUser(String nexusUser) Set the value of nexusUser.voidsetNexusUsesProxy(Boolean nexusUsesProxy) Set the value of nexusUsesProxy.voidsetNodeAnalyzerEnabled(Boolean nodeAnalyzerEnabled) Set the value of nodeAnalyzerEnabled.voidsetNodeAuditAnalyzerEnabled(Boolean nodeAuditAnalyzerEnabled) Set the value of nodeAuditAnalyzerEnabled.voidsetNodeAuditAnalyzerUseCache(Boolean nodeAuditAnalyzerUseCache) Set the value of nodeAuditAnalyzerUseCache.voidsetNodeAuditSkipDevDependencies(Boolean nodeAuditSkipDevDependencies) Set the value of nodeAuditSkipDevDependencies.voidsetNodePackageSkipDevDependencies(Boolean nodePackageSkipDevDependencies) Set the value of nodePackageSkipDevDependencies.voidsetNugetconfAnalyzerEnabled(Boolean nugetconfAnalyzerEnabled) Sets whether or not the analyzer is enabled.voidsetNuspecAnalyzerEnabled(Boolean nuspecAnalyzerEnabled) Sets whether or not the analyzer is enabled.voidsetOpensslAnalyzerEnabled(Boolean opensslAnalyzerEnabled) Set the value of opensslAnalyzerEnabled.voidsetOssIndexAnalyzerCacheValidForHours(Integer ossIndexAnalyzerCacheValidForHours) Set value ofossIndexAnalyzerCacheValidForHours.voidsetOssindexAnalyzerEnabled(Boolean ossIndexAnalyzerEnabled) Deprecated.UsesetOssIndexAnalyzerEnabled(Boolean)instead.voidsetOssIndexAnalyzerEnabled(Boolean ossIndexAnalyzerEnabled) Set value of ossIndexAnalyzerEnabled.voidsetOssindexAnalyzerPassword(String ossIndexAnalyzerPassword) Deprecated.UsesetOssIndexAnalyzerPassword(String)instead.voidsetOssIndexAnalyzerPassword(String ossIndexAnalyzerPassword) Set value of ossIndexAnalyzerPassword.voidsetOssindexAnalyzerUrl(String ossIndexAnalyzerUrl) Deprecated.UsesetOssIndexAnalyzerUrl(String)instead.voidsetOssIndexAnalyzerUrl(String ossIndexAnalyzerUrl) Set value of ossIndexAnalyzerUrl.voidsetOssindexAnalyzerUseCache(Boolean ossIndexAnalyzerUseCache) Deprecated.UsesetOssIndexAnalyzerUseCache(Boolean)instead.voidsetOssIndexAnalyzerUseCache(Boolean ossIndexAnalyzerUseCache) Set value of ossIndexAnalyzerUseCache.voidsetOssindexAnalyzerUsername(String ossIndexAnalyzerUsername) Deprecated.UsesetOssIndexAnalyzerUsername(String)instead.voidsetOssIndexAnalyzerUsername(String ossIndexAnalyzerUsername) Set value of ossIndexAnalyzerUsername.voidsetOssIndexWarnOnlyOnRemoteErrors(Boolean ossIndexWarnOnlyOnRemoteErrors) Set value ofossIndexAnalyzerWarnOnlyOnRemoteErrors.voidsetPathToDotnetCore(String pathToCore) Set the value of pathToCore.voidsetPathToGo(String pathToGo) Set the value of pathToGo.voidsetPathToPnpm(String pathToPnpm) Set the value of pathToPnpm.voidsetPathToYarn(String pathToYarn) Set the value of pathToYarn.voidsetPipAnalyzerEnabled(Boolean pipAnalyzerEnabled) Set the value of pipAnalyzerEnabled.voidsetPipfileAnalyzerEnabled(Boolean pipfileAnalyzerEnabled) Set the value of pipfileAnalyzerEnabled.voidsetPnpmAuditAnalyzerEnabled(Boolean pnpmAuditAnalyzerEnabled) Set the value of pnpmAuditAnalyzerEnabled.voidsetPoetryAnalyzerEnabled(Boolean poetryAnalyzerEnabled) Set the value of poetryAnalyzerEnabled.voidsetPrettyPrint(boolean prettyPrint) Set the value of prettyPrint.voidsetProjectName(String projectName) Set the value of projectName.voidsetPyDistributionAnalyzerEnabled(Boolean pyDistributionAnalyzerEnabled) Set the value of pyDistributionAnalyzerEnabled.voidsetPyPackageAnalyzerEnabled(Boolean pyPackageAnalyzerEnabled) Set the value of pyPackageAnalyzerEnabled.voidsetRefId(org.apache.tools.ant.types.Reference r) Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere.voidsetReportFormat(Check.ReportFormats reportFormat) Set the value of reportFormat.voidsetReportOutputDirectory(String reportOutputDirectory) Set the value of reportOutputDirectory.voidsetRetirejsFilterNonVulnerable(Boolean retireJsFilterNonVulnerable) Deprecated.UsesetRetireJsFilterNonVulnerable(Boolean)instead.voidsetRetireJsFilterNonVulnerable(Boolean retireJsFilterNonVulnerable) Set the value of retireJsFilterNonVulnerable.voidsetRubygemsAnalyzerEnabled(Boolean rubygemsAnalyzerEnabled) Set the value of rubygemsAnalyzerEnabled.voidsetShowSummary(boolean showSummary) Set the value of showSummary.voidsetSuppressionFile(String suppressionFile) Set the value of suppressionFile.voidsetSuppressionFileBearerToken(String suppressionFileBearerToken) Sets the token to download user-authored suppression files from an HTTP Bearer auth protected location.voidsetSuppressionFilePassword(String suppressionFilePassword) Sets the password/token to download user-authored suppression files from an HTTP Basic auth protected location.voidsetSuppressionFileUser(String suppressionFileUser) Sets the username to download user-authored suppression files from an HTTP Basic auth protected location.voidsetSwiftPackageManagerAnalyzerEnabled(Boolean swiftPackageManagerAnalyzerEnabled) Sets the enabled state of the swift package manager analyzer.voidsetSwiftPackageResolvedAnalyzerEnabled(Boolean swiftPackageResolvedAnalyzerEnabled) Sets the enabled state of the swift package manager analyzer.voidsetVersionCheckEnabled(Boolean versionCheckEnabled) Sets whether the version check is enabled.voidsetYarnAuditAnalyzerEnabled(Boolean yarnAuditAnalyzerEnabled) Set the value of yarnAuditAnalyzerEnabled.voidsetZipExtensions(String zipExtensions) Set the value of zipExtensions.Methods inherited from class Update
setConnectionString, setConnectionTimeout, setDatabaseDriverName, setDatabaseDriverPath, setDatabasePassword, setDatabaseUser, setHostedSuppressionsBearerToken, setHostedSuppressionsEnabled, setHostedSuppressionsForceUpdate, setHostedSuppressionsPassword, setHostedSuppressionsUrl, setHostedSuppressionsUser, setHostedSuppressionsValidForHours, setKnownExploitedBearerToken, setKnownExploitedEnabled, setKnownExploitedPassword, setKnownExploitedUrl, setKnownExploitedUser, setKnownExploitedValidForHours, setNonProxyHosts, setNvdApiDelay, setNvdApiEndpoint, setNvdApiKey, setNvdApiResultsPerPage, setNvdBearerToken, setNvdDatafeedUrl, setNvdMaxRetryCount, setNvdPassword, setNvdUser, setNvdValidForHours, setProxyPassword, setProxyPort, setProxyServer, setProxyUsername, setReadTimeout, setRetireJsAnalyzerEnabled, setRetireJsForceUpdate, setRetireJsUrl, setRetireJsUrlBearerToken, setRetireJsUrlPassword, setRetireJsUrlUserMethods inherited from class Purge
execute, getSettings, isFailOnError, setDataDirectory, setFailOnErrorMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
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
Add a suppression file.This is called by Ant with the configured
SuppressionFile.- Parameters:
suppressionFile- the suppression file to add.
-
addConfiguredReportFormat
Add a report format.This is called by Ant with the configured
Check.ReportFormat.- Parameters:
reportFormat- the reportFormat to add.
-
setVersionCheckEnabled
Sets whether the version check is enabled.- Parameters:
versionCheckEnabled- a Boolean indicating if the version check is enabled.
-
getProjectName
-
setProjectName
Set the value of projectName.- Parameters:
projectName- new value of projectName
-
setReportOutputDirectory
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
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
Set the value of reportFormat.- Parameters:
reportFormat- new value of reportFormat
-
getReportFormats
-
setSuppressionFile
Set the value of suppressionFile.- Parameters:
suppressionFile- new value of suppressionFile
-
setSuppressionFileUser
Sets the username to download user-authored suppression files from an HTTP Basic auth protected location.- Parameters:
suppressionFileUser- The username
-
setSuppressionFilePassword
Sets the password/token to download user-authored suppression files from an HTTP Basic auth protected location.- Parameters:
suppressionFilePassword- The password/token
-
setSuppressionFileBearerToken
Sets the token to download user-authored suppression files from an HTTP Bearer auth protected location.- Parameters:
suppressionFileBearerToken- The token
-
setHintsFile
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
Set the value of enableExperimental.- Parameters:
enableExperimental- new value of enableExperimental
-
setEnableRetired
Set the value of enableRetired.- Parameters:
enableRetired- new value of enableRetired
-
setJarAnalyzerEnabled
Sets whether or not the analyzer is enabled.- Parameters:
jarAnalyzerEnabled- the value of the new setting
-
setArchiveAnalyzerEnabled
Sets whether the analyzer is enabled.- Parameters:
archiveAnalyzerEnabled- the value of the new setting
-
setAssemblyAnalyzerEnabled
Sets whether or not the analyzer is enabled.- Parameters:
assemblyAnalyzerEnabled- the value of the new setting
-
setMSBuildAnalyzerEnabled
Sets whether or not the analyzer is enabled.- Parameters:
msbuildAnalyzerEnabled- the value of the new setting
-
setNuspecAnalyzerEnabled
Sets whether or not the analyzer is enabled.- Parameters:
nuspecAnalyzerEnabled- the value of the new setting
-
setNugetconfAnalyzerEnabled
Sets whether or not the analyzer is enabled.- Parameters:
nugetconfAnalyzerEnabled- the value of the new setting
-
setLibmanAnalyzerEnabled
Sets whether or not the analyzer is enabled.- Parameters:
libmanAnalyzerEnabled- the value of the new setting
-
setComposerAnalyzerEnabled
Set the value of composerAnalyzerEnabled.- Parameters:
composerAnalyzerEnabled- new value of composerAnalyzerEnabled
-
setComposerAnalyzerSkipDev
Set the value of composerAnalyzerSkipDev.- Parameters:
composerAnalyzerSkipDev- new value of composerAnalyzerSkipDev
-
setCpanfileAnalyzerEnabled
Set the value of cpanfileAnalyzerEnabled.- Parameters:
cpanfileAnalyzerEnabled- new value of cpanfileAnalyzerEnabled
-
setAutoconfAnalyzerEnabled
Set the value of autoconfAnalyzerEnabled.- Parameters:
autoconfAnalyzerEnabled- new value of autoconfAnalyzerEnabled
-
setPipAnalyzerEnabled
Set the value of pipAnalyzerEnabled.- Parameters:
pipAnalyzerEnabled- new value of pipAnalyzerEnabled
-
setPipfileAnalyzerEnabled
Set the value of pipfileAnalyzerEnabled.- Parameters:
pipfileAnalyzerEnabled- new value of pipfileAnalyzerEnabled
-
setPoetryAnalyzerEnabled
Set the value of poetryAnalyzerEnabled.- Parameters:
poetryAnalyzerEnabled- new value of poetryAnalyzerEnabled
-
setBundleAuditAnalyzerEnabled
Sets if the Bundle Audit Analyzer is enabled.- Parameters:
bundleAuditAnalyzerEnabled- whether or not the analyzer should be enabled
-
setBundleAuditPath
Sets the path to the bundle audit executable.- Parameters:
bundleAuditPath- the path to the bundle audit executable
-
setBundleAuditWorkingDirectory
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
Sets whether or not the cocoapods analyzer is enabled.- Parameters:
cocoapodsAnalyzerEnabled- the state of the cocoapods analyzer
-
setCarthageAnalyzerEnabled
Sets whether or not the Carthage analyzer is enabled.- Parameters:
carthageAnalyzerEnabled- the state of the Carthage analyzer
-
setSwiftPackageManagerAnalyzerEnabled
Sets the enabled state of the swift package manager analyzer.- Parameters:
swiftPackageManagerAnalyzerEnabled- the enabled state of the swift package manager
-
setSwiftPackageResolvedAnalyzerEnabled
Sets the enabled state of the swift package manager analyzer.- Parameters:
swiftPackageResolvedAnalyzerEnabled- the enabled state of the swift package resolved analyzer
-
setOpensslAnalyzerEnabled
Set the value of opensslAnalyzerEnabled.- Parameters:
opensslAnalyzerEnabled- new value of opensslAnalyzerEnabled
-
setNodeAnalyzerEnabled
Set the value of nodeAnalyzerEnabled.- Parameters:
nodeAnalyzerEnabled- new value of nodeAnalyzerEnabled
-
setNodeAuditAnalyzerEnabled
Set the value of nodeAuditAnalyzerEnabled.- Parameters:
nodeAuditAnalyzerEnabled- new value of nodeAuditAnalyzerEnabled
-
setYarnAuditAnalyzerEnabled
Set the value of yarnAuditAnalyzerEnabled.- Parameters:
yarnAuditAnalyzerEnabled- new value of yarnAuditAnalyzerEnabled
-
setPnpmAuditAnalyzerEnabled
Set the value of pnpmAuditAnalyzerEnabled.- Parameters:
pnpmAuditAnalyzerEnabled- new value of pnpmAuditAnalyzerEnabled
-
setNodeAuditAnalyzerUseCache
Set the value of nodeAuditAnalyzerUseCache.- Parameters:
nodeAuditAnalyzerUseCache- new value of nodeAuditAnalyzerUseCache
-
setNodePackageSkipDevDependencies
Set the value of nodePackageSkipDevDependencies.- Parameters:
nodePackageSkipDevDependencies- new value of nodePackageSkipDevDependencies
-
setNodeAuditSkipDevDependencies
Set the value of nodeAuditSkipDevDependencies.- Parameters:
nodeAuditSkipDevDependencies- new value of nodeAuditSkipDevDependencies
-
setRetirejsFilterNonVulnerable
Deprecated.UsesetRetireJsFilterNonVulnerable(Boolean)instead.Set the value of retirejsFilterNonVulnerable.- Parameters:
retireJsFilterNonVulnerable- new value of retirejsFilterNonVulnerable
-
setRetireJsFilterNonVulnerable
Set the value of retireJsFilterNonVulnerable.- Parameters:
retireJsFilterNonVulnerable- new value of retireJsFilterNonVulnerable
-
addConfiguredRetirejsFilter
Deprecated.UseaddConfiguredRetireJsFilter(RetirejsFilter)instead.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
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
Set the value of rubygemsAnalyzerEnabled.- Parameters:
rubygemsAnalyzerEnabled- new value of rubygemsAnalyzerEnabled
-
setPyPackageAnalyzerEnabled
Set the value of pyPackageAnalyzerEnabled.- Parameters:
pyPackageAnalyzerEnabled- new value of pyPackageAnalyzerEnabled
-
setPyDistributionAnalyzerEnabled
Set the value of pyDistributionAnalyzerEnabled.- Parameters:
pyDistributionAnalyzerEnabled- new value of pyDistributionAnalyzerEnabled
-
setMixAuditAnalyzerEnabled
Set the value of mixAuditAnalyzerEnabled.- Parameters:
mixAuditAnalyzerEnabled- new value of mixAuditAnalyzerEnabled
-
setMixAuditPath
Sets the path to the mix audit executable.- Parameters:
mixAuditPath- the path to the bundle audit executable
-
setCentralAnalyzerEnabled
Set the value of centralAnalyzerEnabled.- Parameters:
centralAnalyzerEnabled- new value of centralAnalyzerEnabled
-
setCentralAnalyzerUseCache
Set the value of centralAnalyzerUseCache.- Parameters:
centralAnalyzerUseCache- new value of centralAnalyzerUseCache
-
setNexusAnalyzerEnabled
Set the value of nexusAnalyzerEnabled.- Parameters:
nexusAnalyzerEnabled- new value of nexusAnalyzerEnabled
-
setGolangDepEnabled
Set the value of golangDepEnabled.- Parameters:
golangDepEnabled- new value of golangDepEnabled
-
setGolangModEnabled
Set the value of golangModEnabled.- Parameters:
golangModEnabled- new value of golangModEnabled
-
setDartAnalyzerEnabled
Set the value of dartAnalyzerEnabled.- Parameters:
dartAnalyzerEnabled- new value of dartAnalyzerEnabled
-
setPathToYarn
Set the value of pathToYarn.- Parameters:
pathToYarn- new value of pathToYarn
-
setPathToPnpm
Set the value of pathToPnpm.- Parameters:
pathToPnpm- new value of pathToPnpm
-
setPathToGo
Set the value of pathToGo.- Parameters:
pathToGo- new value of pathToGo
-
setNexusUrl
Set the value of nexusUrl.- Parameters:
nexusUrl- new value of nexusUrl
-
setNexusUser
Set the value of nexusUser.- Parameters:
nexusUser- new value of nexusUser
-
setNexusPassword
Set the value of nexusPassword.- Parameters:
nexusPassword- new value of nexusPassword
-
setNexusUsesProxy
Set the value of nexusUsesProxy.- Parameters:
nexusUsesProxy- new value of nexusUsesProxy
-
setZipExtensions
Set the value of zipExtensions.- Parameters:
zipExtensions- new value of zipExtensions
-
setPathToDotnetCore
Set the value of pathToCore.- Parameters:
pathToCore- new value of pathToCore
-
setOssindexAnalyzerEnabled
Deprecated.UsesetOssIndexAnalyzerEnabled(Boolean)instead.Set value ofossIndexAnalyzerEnabled.- Parameters:
ossIndexAnalyzerEnabled- new value of ossIndexAnalyzerEnabled
-
setOssIndexAnalyzerEnabled
Set value of ossIndexAnalyzerEnabled.- Parameters:
ossIndexAnalyzerEnabled- new value of ossIndexAnalyzerEnabled
-
setOssindexAnalyzerUseCache
Deprecated.UsesetOssIndexAnalyzerUseCache(Boolean)instead.Set value ofossIndexAnalyzerUseCache.- Parameters:
ossIndexAnalyzerUseCache- new value of ossIndexAnalyzerUseCache
-
setOssIndexAnalyzerUseCache
Set value of ossIndexAnalyzerUseCache.- Parameters:
ossIndexAnalyzerUseCache- new value of ossIndexAnalyzerUseCache
-
setOssIndexAnalyzerCacheValidForHours
Set value ofossIndexAnalyzerCacheValidForHours.- Parameters:
ossIndexAnalyzerCacheValidForHours- new value of ossIndexAnalyzerCacheValidForHours
-
setOssindexAnalyzerUrl
Deprecated.UsesetOssIndexAnalyzerUrl(String)instead.Set value ofossIndexAnalyzerUrl.- Parameters:
ossIndexAnalyzerUrl- new value of ossIndexAnalyzerUrl
-
setOssIndexAnalyzerUrl
Set value of ossIndexAnalyzerUrl.- Parameters:
ossIndexAnalyzerUrl- new value of ossIndexAnalyzerUrl
-
setOssindexAnalyzerUsername
Deprecated.UsesetOssIndexAnalyzerUsername(String)instead.Set value ofossIndexAnalyzerUsername.- Parameters:
ossIndexAnalyzerUsername- new value of ossIndexAnalyzerUsername
-
setOssIndexAnalyzerUsername
Set value of ossIndexAnalyzerUsername.- Parameters:
ossIndexAnalyzerUsername- new value of ossIndexAnalyzerUsername
-
setOssindexAnalyzerPassword
Deprecated.UsesetOssIndexAnalyzerPassword(String)instead.Set value ofossIndexAnalyzerPassword.- Parameters:
ossIndexAnalyzerPassword- new value of ossIndexAnalyzerPassword
-
setOssIndexAnalyzerPassword
Set value of ossIndexAnalyzerPassword.- Parameters:
ossIndexAnalyzerPassword- new value of ossIndexAnalyzerPassword
-
setOssIndexWarnOnlyOnRemoteErrors
Set value ofossIndexAnalyzerWarnOnlyOnRemoteErrors.- Parameters:
ossIndexWarnOnlyOnRemoteErrors- the value of ossIndexWarnOnlyOnRemoteErrors
-
setCmakeAnalyzerEnabled
Set the value of cmakeAnalyzerEnabled.- Parameters:
cmakeAnalyzerEnabled- new value of cmakeAnalyzerEnabled
-
setArtifactoryAnalyzerEnabled
Set the value of artifactoryAnalyzerEnabled.- Parameters:
artifactoryAnalyzerEnabled- new value of artifactoryAnalyzerEnabled
-
setArtifactoryAnalyzerUrl
Set the value of artifactoryAnalyzerUrl.- Parameters:
artifactoryAnalyzerUrl- new value of artifactoryAnalyzerUrl
-
setArtifactoryAnalyzerUseProxy
Set the value of artifactoryAnalyzerUseProxy.- Parameters:
artifactoryAnalyzerUseProxy- new value of artifactoryAnalyzerUseProxy
-
setArtifactoryAnalyzerParallelAnalysis
Set the value of artifactoryAnalyzerParallelAnalysis.- Parameters:
artifactoryAnalyzerParallelAnalysis- new value of artifactoryAnalyzerParallelAnalysis
-
setArtifactoryAnalyzerUsername
Set the value of artifactoryAnalyzerUsername.- Parameters:
artifactoryAnalyzerUsername- new value of artifactoryAnalyzerUsername
-
setArtifactoryAnalyzerApiToken
Set the value of artifactoryAnalyzerApiToken.- Parameters:
artifactoryAnalyzerApiToken- new value of artifactoryAnalyzerApiToken
-
setArtifactoryAnalyzerBearerToken
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.BuildExceptionDescription copied from class:UpdateExecutes the update by initializing the settings, downloads the NVD XML data, and then processes the data storing it in the local database.- Overrides:
executeWithContextClassloaderin classUpdate- 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.BuildExceptionTakes 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:
populateSettingsin classUpdate- Throws:
org.apache.tools.ant.BuildException- thrown when an invalid setting is configured.
-
addConfiguredRetireJsFilter(RetirejsFilter)instead.