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 |
getPathToMono()
Get the value of pathToMono.
|
String |
getProxyPassword()
Get the value of proxyPassword.
|
String |
getProxyPort()
Get the value of proxyPort.
|
String |
getProxyServer()
Get the value of proxyServer.
|
String |
getProxyUrl()
Deprecated.
use
getProxyServer() instead |
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 |
isArchiveAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isAssemblyAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isAutoUpdate()
Get the value of autoUpdate.
|
boolean |
isCentralAnalyzerEnabled()
Get the value of centralAnalyzerEnabled.
|
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 |
isNuspecAnalyzerEnabled()
Returns whether or not the analyzer is enabled.
|
boolean |
isReference()
Learn whether the refid attribute of this element been set.
|
boolean |
isShowSummary()
Get the value of showSummary.
|
boolean |
isUpdateOnly()
Get the value of updateOnly.
|
void |
setApplicationName(String applicationName)
Set the value of applicationName.
|
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 |
setAutoUpdate(boolean autoUpdate)
Set the value of autoUpdate.
|
void |
setCentralAnalyzerEnabled(boolean centralAnalyzerEnabled)
Set the value of centralAnalyzerEnabled.
|
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 |
setJarAnalyzerEnabled(boolean jarAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
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 |
setNuspecAnalyzerEnabled(boolean nuspecAnalyzerEnabled)
Sets whether or not the analyzer is enabled.
|
void |
setPathToMono(String pathToMono)
Set the value of pathToMono.
|
void |
setProxyPassword(String proxyPassword)
Set the value of proxyPassword.
|
void |
setProxyPort(String proxyPort)
Set the value of proxyPort.
|
void |
setProxyServer(String server)
Set the value of proxyServer.
|
void |
setProxyUrl(String proxyUrl)
Deprecated.
use
setProxyServer(java.lang.String) instead |
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 |
setUpdateOnly(boolean updateOnly)
Set the value of updateOnly.
|
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 boolean isUpdateOnly()
public void setUpdateOnly(boolean updateOnly)
updateOnly - new value of updateOnlypublic String getReportFormat()
public void setReportFormat(DependencyCheckTask.ReportFormats reportFormat)
reportFormat - new value of reportFormatpublic String getProxyServer()
public void setProxyServer(String server)
server - new value of proxyServer@Deprecated public String getProxyUrl()
getProxyServer() instead@Deprecated public void setProxyUrl(String proxyUrl)
setProxyServer(java.lang.String) insteadproxyUrl - new value of proxyServerpublic 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 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 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 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 String getPathToMono()
public void setPathToMono(String pathToMono)
pathToMono - new value of pathToMonopublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic boolean isJarAnalyzerEnabled()
Copyright© 2012-15 Jeremy Long. All Rights Reserved.