mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
updated to support the new Settings implementation
Former-commit-id: 530ce66039f4dfe4dd3db11790a9660f03cb873c
This commit is contained in:
@@ -911,6 +911,7 @@ public class DependencyCheckTask extends Task {
|
|||||||
"Unable to connect to the dependency-check database; analysis has stopped");
|
"Unable to connect to the dependency-check database; analysis has stopped");
|
||||||
Logger.getLogger(DependencyCheckTask.class.getName()).log(Level.FINE, "", ex);
|
Logger.getLogger(DependencyCheckTask.class.getName()).log(Level.FINE, "", ex);
|
||||||
} finally {
|
} finally {
|
||||||
|
Settings.cleanup();
|
||||||
if (engine != null) {
|
if (engine != null) {
|
||||||
engine.cleanup();
|
engine.cleanup();
|
||||||
}
|
}
|
||||||
@@ -936,6 +937,7 @@ public class DependencyCheckTask extends Task {
|
|||||||
* properties required to change the proxy url, port, and connection timeout.
|
* properties required to change the proxy url, port, and connection timeout.
|
||||||
*/
|
*/
|
||||||
private void populateSettings() {
|
private void populateSettings() {
|
||||||
|
Settings.initialize();
|
||||||
InputStream taskProperties = null;
|
InputStream taskProperties = null;
|
||||||
try {
|
try {
|
||||||
taskProperties = this.getClass().getClassLoader().getResourceAsStream(PROPERTIES_FILE);
|
taskProperties = this.getClass().getClassLoader().getResourceAsStream(PROPERTIES_FILE);
|
||||||
|
|||||||
Reference in New Issue
Block a user