| 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()
Deprecated.
Use the update task instead
|
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)
Deprecated.
Use the update task instead
|
void |
setZipExtensions(String zipExtensions)
Set the value of zipExtensions.
|
getConnectionString, getConnectionTimeout, getCveUrl12Base, getCveUrl12Modified, getCveUrl20Base, getCveUrl20Modified, getCveValidForHours, getDatabaseDriverName, getDatabaseDriverPath, getDatabasePassword, getDatabaseUser, getProxyPassword, getProxyPort, getProxyServer, getProxyUsername, setConnectionString, setConnectionTimeout, setCveUrl12Base, setCveUrl12Modified, setCveUrl20Base, setCveUrl20Modified, setCveValidForHours, 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 autoUpdate@Deprecated public boolean isUpdateOnly()
@Deprecated 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()
throws org.apache.tools.ant.BuildException
populateSettings in class Updateorg.apache.tools.ant.BuildException - thrown when an invalid setting is configured.Copyright? 2012-15 Jeremy Long. All Rights Reserved.