| Modifier and Type | Class and Description |
|---|---|
static class |
Check.ReportFormats
An enumeration of supported report formats: "ALL", "HTML", "XML", "VULN", etc..
|
| Constructor and Description |
|---|
Check()
Construct a new DependencyCheckTask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection rc)
Add an arbitrary ResourceCollection.
|
void |
execute()
Executes the update by initializing the settings, downloads the NVD XML data, and then processes the data storing it in the
local database.
|
String |
getApplicationName()
Deprecated.
use projectName instead.
|
float |
getFailBuildOnCVSS()
Get the value of failBuildOnCVSS.
|
String |
getNexusUrl()
Get the value of nexusUrl.
|
String |
getPathToMono()
Get the value of pathToMono.
|
String |
getProjectName()
Get the value of projectName.
|
String |
getReportFormat()
Get the value of reportFormat.
|
String |
getReportOutputDirectory()
Get the value of reportOutputDirectory.
|
String |
getSuppressionFile()
Get the value of suppressionFile.
|
String |
getZipExtensions()
Get the value of zipExtensions.
|
boolean |
isArchiveAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isAssemblyAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isAutoconfAnalyzerEnabled()
Get the value of autoconfAnalyzerEnabled.
|
boolean |
isAutoUpdate()
Get the value of autoUpdate.
|
boolean |
isCentralAnalyzerEnabled()
Get the value of centralAnalyzerEnabled.
|
boolean |
isCMakeAnalyzerEnabled()
Get the value of cmakeAnalyzerEnabled.
|
boolean |
isComposerAnalyzerEnabled()
Get the value of composerAnalyzerEnabled.
|
boolean |
isJarAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isNexusAnalyzerEnabled()
Get the value of nexusAnalyzerEnabled.
|
boolean |
isNexusUsesProxy()
Get the value of nexusUsesProxy.
|
boolean |
isNodeAnalyzerEnabled()
Get the value of nodeAnalyzerEnabled.
|
boolean |
isNuspecAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isOpensslAnalyzerEnabled()
Get the value of opensslAnalyzerEnabled.
|
boolean |
isPyDistributionAnalyzerEnabled()
Get the value of pyDistributionAnalyzerEnabled.
|
boolean |
isPyPackageAnalyzerEnabled()
Get the value of pyPackageAnalyzerEnabled.
|
boolean |
isReference()
Learn whether the refid attribute of this element been set.
|
boolean |
isRubygemsAnalyzerEnabled()
Get the value of rubygemsAnalyzerEnabled.
|
boolean |
isShowSummary()
Get the value of showSummary.
|
boolean |
isUpdateOnly()
Get the value of updateOnly.
|
protected void |
populateSettings()
Takes the properties supplied and updates the dependency-check settings.
|
void |
setApplicationName(String applicationName)
Deprecated.
use projectName instead.
|
void |
setArchiveAnalyzerEnabled(boolean archiveAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setAssemblyAnalyzerEnabled(boolean assemblyAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setAutoconfAnalyzerEnabled(boolean autoconfAnalyzerEnabled)
Set the value of autoconfAnalyzerEnabled.
|
void |
setAutoUpdate(boolean autoUpdate)
Set the value of autoUpdate.
|
void |
setCentralAnalyzerEnabled(boolean centralAnalyzerEnabled)
Set the value of centralAnalyzerEnabled.
|
void |
setCMakeAnalyzerEnabled(boolean cmakeAnalyzerEnabled)
Set the value of cmakeAnalyzerEnabled.
|
void |
setComposerAnalyzerEnabled(boolean composerAnalyzerEnabled)
Set the value of composerAnalyzerEnabled.
|
void |
setFailBuildOnCVSS(float failBuildOnCVSS)
Set the value of failBuildOnCVSS.
|
void |
setJarAnalyzerEnabled(boolean jarAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setNexusAnalyzerEnabled(boolean nexusAnalyzerEnabled)
Set the value of nexusAnalyzerEnabled.
|
void |
setNexusUrl(String nexusUrl)
Set the value of nexusUrl.
|
void |
setNexusUsesProxy(boolean nexusUsesProxy)
Set the value of nexusUsesProxy.
|
void |
setNodeAnalyzerEnabled(boolean nodeAnalyzerEnabled)
Set the value of nodeAnalyzerEnabled.
|
void |
setNuspecAnalyzerEnabled(boolean nuspecAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setOpensslAnalyzerEnabled(boolean opensslAnalyzerEnabled)
Set the value of opensslAnalyzerEnabled.
|
void |
setPathToMono(String pathToMono)
Set the value of pathToMono.
|
void |
setProjectName(String projectName)
Set the value of projectName.
|
void |
setPyDistributionAnalyzerEnabled(boolean pyDistributionAnalyzerEnabled)
Set the value of pyDistributionAnalyzerEnabled.
|
void |
setPyPackageAnalyzerEnabled(boolean pyPackageAnalyzerEnabled)
Set the value of pyPackageAnalyzerEnabled.
|
void |
setRefid(org.apache.tools.ant.types.Reference r)
Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere.
|
void |
setReportFormat(Check.ReportFormats reportFormat)
Set the value of reportFormat.
|
void |
setReportOutputDirectory(String reportOutputDirectory)
Set the value of reportOutputDirectory.
|
void |
setRubygemsAnalyzerEnabled(boolean rubygemsAnalyzerEnabled)
Set the value of rubygemsAnalyzerEnabled.
|
void |
setShowSummary(boolean showSummary)
Set the value of showSummary.
|
void |
setSuppressionFile(String suppressionFile)
Set the value of suppressionFile.
|
void |
setUpdateOnly(boolean updateOnly)
Set the value of updateOnly.
|
void |
setZipExtensions(String zipExtensions)
Set the value of zipExtensions.
|
getConnectionString, getConnectionTimeout, getCveUrl12Base, getCveUrl12Modified, getCveUrl20Base, getCveUrl20Modified, getDatabaseDriverName, getDatabaseDriverPath, getDatabasePassword, getDatabaseUser, getProxyPassword, getProxyPort, getProxyServer, getProxyUsername, setConnectionString, setConnectionTimeout, setCveUrl12Base, setCveUrl12Modified, setCveUrl20Base, setCveUrl20Modified, setDatabaseDriverName, setDatabaseDriverPath, setDatabasePassword, setDatabaseUser, setProxyPassword, setProxyPort, setProxyServer, setProxyUsernamegetDataDirectory, setDataDirectorybindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void add(org.apache.tools.ant.types.ResourceCollection rc)
rc - the ResourceCollection to add.public boolean isReference()
public void setRefid(org.apache.tools.ant.types.Reference r)
r - the reference to a path, fileset, dirset or filelist.@Deprecated public String getApplicationName()
@Deprecated public void setApplicationName(String applicationName)
applicationName - new value of applicationNamepublic String getProjectName()
public void setProjectName(String projectName)
projectName - new value of projectNamepublic String getReportOutputDirectory()
public void setReportOutputDirectory(String reportOutputDirectory)
reportOutputDirectory - new value of reportOutputDirectorypublic float getFailBuildOnCVSS()
public void setFailBuildOnCVSS(float failBuildOnCVSS)
failBuildOnCVSS - new value of failBuildOnCVSSpublic boolean isAutoUpdate()
public void setAutoUpdate(boolean autoUpdate)
autoUpdate - new value of autoUpdatepublic boolean isUpdateOnly()
public void setUpdateOnly(boolean updateOnly)
updateOnly - new value of updateOnlypublic String getReportFormat()
public void setReportFormat(Check.ReportFormats reportFormat)
reportFormat - new value of reportFormatpublic String getSuppressionFile()
public void setSuppressionFile(String suppressionFile)
suppressionFile - new value of suppressionFilepublic boolean isShowSummary()
public void setShowSummary(boolean showSummary)
showSummary - new value of showSummarypublic boolean isJarAnalyzerEnabled()
public void setJarAnalyzerEnabled(boolean jarAnalyzerEnabled)
jarAnalyzerEnabled - the value of the new settingpublic boolean isArchiveAnalyzerEnabled()
public void setArchiveAnalyzerEnabled(boolean archiveAnalyzerEnabled)
archiveAnalyzerEnabled - the value of the new settingpublic boolean isAssemblyAnalyzerEnabled()
public void setAssemblyAnalyzerEnabled(boolean assemblyAnalyzerEnabled)
assemblyAnalyzerEnabled - the value of the new settingpublic boolean isNuspecAnalyzerEnabled()
public void setNuspecAnalyzerEnabled(boolean nuspecAnalyzerEnabled)
nuspecAnalyzerEnabled - the value of the new settingpublic boolean isComposerAnalyzerEnabled()
public void setComposerAnalyzerEnabled(boolean composerAnalyzerEnabled)
composerAnalyzerEnabled - new value of composerAnalyzerEnabledpublic boolean isAutoconfAnalyzerEnabled()
public void setAutoconfAnalyzerEnabled(boolean autoconfAnalyzerEnabled)
autoconfAnalyzerEnabled - new value of autoconfAnalyzerEnabledpublic boolean isCMakeAnalyzerEnabled()
public void setCMakeAnalyzerEnabled(boolean cmakeAnalyzerEnabled)
cmakeAnalyzerEnabled - new value of cmakeAnalyzerEnabledpublic boolean isOpensslAnalyzerEnabled()
public void setOpensslAnalyzerEnabled(boolean opensslAnalyzerEnabled)
opensslAnalyzerEnabled - new value of opensslAnalyzerEnabledpublic boolean isNodeAnalyzerEnabled()
public void setNodeAnalyzerEnabled(boolean nodeAnalyzerEnabled)
nodeAnalyzerEnabled - new value of nodeAnalyzerEnabledpublic boolean isRubygemsAnalyzerEnabled()
public void setRubygemsAnalyzerEnabled(boolean rubygemsAnalyzerEnabled)
rubygemsAnalyzerEnabled - new value of rubygemsAnalyzerEnabledpublic boolean isPyPackageAnalyzerEnabled()
public void setPyPackageAnalyzerEnabled(boolean pyPackageAnalyzerEnabled)
pyPackageAnalyzerEnabled - new value of pyPackageAnalyzerEnabledpublic boolean isPyDistributionAnalyzerEnabled()
public void setPyDistributionAnalyzerEnabled(boolean pyDistributionAnalyzerEnabled)
pyDistributionAnalyzerEnabled - new value of pyDistributionAnalyzerEnabledpublic boolean isCentralAnalyzerEnabled()
public void setCentralAnalyzerEnabled(boolean centralAnalyzerEnabled)
centralAnalyzerEnabled - new value of centralAnalyzerEnabledpublic boolean isNexusAnalyzerEnabled()
public void setNexusAnalyzerEnabled(boolean nexusAnalyzerEnabled)
nexusAnalyzerEnabled - new value of nexusAnalyzerEnabledpublic String getNexusUrl()
public void setNexusUrl(String nexusUrl)
nexusUrl - new value of nexusUrlpublic boolean isNexusUsesProxy()
public void setNexusUsesProxy(boolean nexusUsesProxy)
nexusUsesProxy - new value of nexusUsesProxypublic String getZipExtensions()
public void setZipExtensions(String zipExtensions)
zipExtensions - new value of zipExtensionspublic String getPathToMono()
public void setPathToMono(String pathToMono)
pathToMono - new value of pathToMonopublic void execute()
throws org.apache.tools.ant.BuildException
Updateprotected void populateSettings()
populateSettings in class UpdateCopyright© 2012-15 Jeremy Long. All Rights Reserved.