updated to support the new Settings implementation

Former-commit-id: 530ce66039f4dfe4dd3db11790a9660f03cb873c
This commit is contained in:
Jeremy Long
2014-04-16 08:11:56 -04:00
parent 9897109332
commit ce6b65adb8

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);