public class DependencyCheckTask
extends org.apache.tools.ant.Task
| Modifier and Type | Class and Description |
|---|---|
static class |
DependencyCheckTask.ReportFormats
An enumeration of supported report formats: "ALL", "HTML", "XML", "VULN", etc..
|
| Constructor and Description |
|---|
DependencyCheckTask()
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() |
String |
getApplicationName()
Get the value of applicationName.
|
String |
getConnectionString()
Get the value of connectionString.
|
String |
getConnectionTimeout()
Get the value of connectionTimeout.
|
String |
getCveUrl12Base()
Get the value of cveUrl12Base.
|
String |
getCveUrl12Modified()
Get the value of cveUrl12Modified.
|
String |
getCveUrl20Base()
Get the value of cveUrl20Base.
|
String |
getCveUrl20Modified()
Get the value of cveUrl20Modified.
|
String |
getDatabaseDriverName()
Get the value of databaseDriverName.
|
String |
getDatabaseDriverPath()
Get the value of databaseDriverPath.
|
String |
getDatabasePassword()
Get the value of databasePassword.
|
String |
getDatabaseUser()
Get the value of databaseUser.
|
String |
getDataDirectory()
Get the value of dataDirectory.
|
float |
getFailBuildOnCVSS()
Get the value of failBuildOnCVSS.
|
String |
getLogFile()
Get the value of logFile.
|
String |
getNexusUrl()
Get the value of nexusUrl.
|
String |
getProxyPassword()
Get the value of proxyPassword.
|
String |
getProxyPort()
Get the value of proxyPort.
|
String |
getProxyUrl()
Get the value of proxyUrl.
|
String |
getProxyUsername()
Get the value of proxyUsername.
|
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 |
isAutoUpdate()
Get the value of autoUpdate.
|
boolean |
isNexusAnalyzerEnabled()
Get the value of nexusAnalyzerEnabled.
|
boolean |
isNexusUsesProxy()
Get the value of nexusUsesProxy.
|
boolean |
isReference()
Learn whether the refid attribute of this element been set.
|
boolean |
isShowSummary()
Get the value of showSummary.
|
void |
setApplicationName(String applicationName)
Set the value of applicationName.
|
void |
setAutoUpdate(boolean autoUpdate)
Set the value of autoUpdate.
|
void |
setConnectionString(String connectionString)
Set the value of connectionString.
|
void |
setConnectionTimeout(String connectionTimeout)
Set the value of connectionTimeout.
|
void |
setCveUrl12Base(String cveUrl12Base)
Set the value of cveUrl12Base.
|
void |
setCveUrl12Modified(String cveUrl12Modified)
Set the value of cveUrl12Modified.
|
void |
setCveUrl20Base(String cveUrl20Base)
Set the value of cveUrl20Base.
|
void |
setCveUrl20Modified(String cveUrl20Modified)
Set the value of cveUrl20Modified.
|
void |
setDatabaseDriverName(String databaseDriverName)
Set the value of databaseDriverName.
|
void |
setDatabaseDriverPath(String databaseDriverPath)
Set the value of databaseDriverPath.
|
void |
setDatabasePassword(String databasePassword)
Set the value of databasePassword.
|
void |
setDatabaseUser(String databaseUser)
Set the value of databaseUser.
|
void |
setDataDirectory(String dataDirectory)
Set the value of dataDirectory.
|
void |
setFailBuildOnCVSS(float failBuildOnCVSS)
Set the value of failBuildOnCVSS.
|
void |
setLogFile(String logFile)
Set the value of logFile.
|
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 |
setProxyPassword(String proxyPassword)
Set the value of proxyPassword.
|
void |
setProxyPort(String proxyPort)
Set the value of proxyPort.
|
void |
setProxyUrl(String proxyUrl)
Set the value of proxyUrl.
|
void |
setProxyUsername(String proxyUsername)
Set the value of proxyUsername.
|
void |
setRefid(org.apache.tools.ant.types.Reference r)
Add a reference to a Path, FileSet, DirSet, or FileList defined elsewhere.
|
void |
setReportFormat(DependencyCheckTask.ReportFormats reportFormat)
Set the value of reportFormat.
|
void |
setReportOutputDirectory(String reportOutputDirectory)
Set the value of reportOutputDirectory.
|
void |
setShowSummary(boolean showSummary)
Set the value of showSummary.
|
void |
setSuppressionFile(String suppressionFile)
Set the value of suppressionFile.
|
void |
setZipExtensions(String zipExtensions)
Set the value of zipExtensions.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic DependencyCheckTask()
public 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.public String getApplicationName()
public void setApplicationName(String applicationName)
applicationName - new value of applicationNamepublic String getDataDirectory()
public void setDataDirectory(String dataDirectory)
dataDirectory - new value of dataDirectorypublic 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 String getReportFormat()
public void setReportFormat(DependencyCheckTask.ReportFormats reportFormat)
reportFormat - new value of reportFormatpublic String getProxyUrl()
public void setProxyUrl(String proxyUrl)
proxyUrl - new value of proxyUrlpublic String getProxyPort()
public void setProxyPort(String proxyPort)
proxyPort - new value of proxyPortpublic String getProxyUsername()
public void setProxyUsername(String proxyUsername)
proxyUsername - new value of proxyUsernamepublic String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - new value of proxyPasswordpublic String getConnectionTimeout()
public void setConnectionTimeout(String connectionTimeout)
connectionTimeout - new value of connectionTimeoutpublic String getLogFile()
public void setLogFile(String logFile)
logFile - new value of logFilepublic 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 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 getDatabaseDriverName()
public void setDatabaseDriverName(String databaseDriverName)
databaseDriverName - new value of databaseDriverNamepublic String getDatabaseDriverPath()
public void setDatabaseDriverPath(String databaseDriverPath)
databaseDriverPath - new value of databaseDriverPathpublic String getConnectionString()
public void setConnectionString(String connectionString)
connectionString - new value of connectionStringpublic String getDatabaseUser()
public void setDatabaseUser(String databaseUser)
databaseUser - new value of databaseUserpublic String getDatabasePassword()
public void setDatabasePassword(String databasePassword)
databasePassword - new value of databasePasswordpublic String getZipExtensions()
public void setZipExtensions(String zipExtensions)
zipExtensions - new value of zipExtensionspublic String getCveUrl12Modified()
public void setCveUrl12Modified(String cveUrl12Modified)
cveUrl12Modified - new value of cveUrl12Modifiedpublic String getCveUrl20Modified()
public void setCveUrl20Modified(String cveUrl20Modified)
cveUrl20Modified - new value of cveUrl20Modifiedpublic String getCveUrl12Base()
public void setCveUrl12Base(String cveUrl12Base)
cveUrl12Base - new value of cveUrl12Basepublic String getCveUrl20Base()
public void setCveUrl20Base(String cveUrl20Base)
cveUrl20Base - new value of cveUrl20Basepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2012–2014 OWASP. All rights reserved.