public class Update extends Purge
| Constructor and Description |
|---|
Update()
Construct a new UpdateTask.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
Integer |
getCveValidForHours()
Get the value of cveValidForHours.
|
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 |
getProxyPassword()
Get the value of proxyPassword.
|
String |
getProxyPort()
Get the value of proxyPort.
|
String |
getProxyServer()
Get the value of proxyServer.
|
String |
getProxyUsername()
Get the value of proxyUsername.
|
protected void |
populateSettings()
Takes the properties supplied and updates the dependency-check settings.
|
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 |
setCveValidForHours(Integer cveValidForHours)
Set the value of cveValidForHours.
|
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 |
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 |
setProxyUsername(String proxyUsername)
Set the value of proxyUsername.
|
getDataDirectory, setDataDirectorybindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic String getProxyServer()
public void setProxyServer(String server)
server - 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 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 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 Integer getCveValidForHours()
public void setCveValidForHours(Integer cveValidForHours)
cveValidForHours - new value of cveValidForHourspublic void execute()
throws org.apache.tools.ant.BuildException
protected void populateSettings()
throws org.apache.tools.ant.BuildException
populateSettings in class Purgeorg.apache.tools.ant.BuildException - thrown when an invalid setting is configured.Copyright? 2012-15 Jeremy Long. All Rights Reserved.