updated to support the new Settings implementation

Former-commit-id: 7382682e8fe7ab4d93c19dc35c7e1c300fd02886
This commit is contained in:
Jeremy Long
2014-04-16 08:11:56 -04:00
parent d1b4e93f9e
commit 6a9ea3bc0f

View File

@@ -911,6 +911,7 @@ public class DependencyCheckTask extends Task {
"Unable to connect to the dependency-check database; analysis has stopped");
Logger.getLogger(DependencyCheckTask.class.getName()).log(Level.FINE, "", ex);
} finally {
Settings.cleanup();
if (engine != null) {
engine.cleanup();
}
@@ -936,6 +937,7 @@ public class DependencyCheckTask extends Task {
* properties required to change the proxy url, port, and connection timeout.
*/
private void populateSettings() {
Settings.initialize();
InputStream taskProperties = null;
try {
taskProperties = this.getClass().getClassLoader().getResourceAsStream(PROPERTIES_FILE);