public class Purge
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
Purge()
Construct a new DependencyCheckTask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Sets the
Thread Context Class Loader to the one for this class,
and then calls executeWithContextClassloader(). |
protected void |
executeWithContextClassloader()
Executes the dependency-check purge to delete the existing local copy of
the NVD CVE data.
|
java.lang.String |
getDataDirectory()
Get the value of dataDirectory.
|
java.lang.String |
getHostedSuppressionsUrl()
Get the value of hostedSuppressionsUrl.
|
Settings |
getSettings() |
boolean |
isFailOnError()
Get the value of failOnError.
|
protected void |
populateSettings()
Takes the properties supplied and updates the dependency-check settings.
|
void |
setDataDirectory(java.lang.String dataDirectory)
Set the value of dataDirectory.
|
void |
setFailOnError(boolean failOnError)
Set the value of failOnError.
|
void |
setHostedSuppressionsUrl(java.lang.String hostedSuppressionsUrl)
Set the value of hostedSuppressionsUrl.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic Settings getSettings()
public java.lang.String getDataDirectory()
public void setDataDirectory(java.lang.String dataDirectory)
dataDirectory - new value of dataDirectorypublic boolean isFailOnError()
public void setFailOnError(boolean failOnError)
failOnError - new value of failOnErrorpublic java.lang.String getHostedSuppressionsUrl()
public void setHostedSuppressionsUrl(java.lang.String hostedSuppressionsUrl)
hostedSuppressionsUrl - new value of hostedSuppressionsUrlpublic final void execute()
throws org.apache.tools.ant.BuildException
Thread Context Class Loader to the one for this class,
and then calls executeWithContextClassloader(). This is done because the JCS cache needs to have
the Thread Context Class Loader set to something that can resolve it's classes. Other build tools do this
by default but Ant does not.execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - throws if there is a problem. See
executeWithContextClassloader() for detailsprotected void executeWithContextClassloader()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - thrown if there is a problem deleting the file(s)protected void populateSettings()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - thrown if the properties file cannot be read.Copyright© 2012-21 Jeremy Long. All Rights Reserved.