From 1f983d502e5a93cd4dd1ed649555e234976f68f3 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 17 Nov 2013 22:37:30 -0500 Subject: [PATCH] introduced property for max thread size Former-commit-id: 5d48fbedf4b71be52fb1c6eefe3e7b02aa4d5082 --- .../main/java/org/owasp/dependencycheck/utils/Settings.java | 4 ++++ .../src/main/resources/dependencycheck.properties | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java index ed4d6ee83..43f1e95d7 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java @@ -141,6 +141,10 @@ public final class Settings { * The location of the temporary directory. */ public static final String TEMP_DIRECTORY = "temp.directory"; + /** + * The maximum number of threads to allocate when downloading files. + */ + public static String MAX_DOWNLOAD_THREAD_POOL_SIZE = "max.download.threads"; } /** * The properties file location. diff --git a/dependency-check-core/src/main/resources/dependencycheck.properties b/dependency-check-core/src/main/resources/dependencycheck.properties index 63d643e1c..b156f7b6c 100644 --- a/dependency-check-core/src/main/resources/dependencycheck.properties +++ b/dependency-check-core/src/main/resources/dependencycheck.properties @@ -1,14 +1,13 @@ application.name=${pom.name} application.version=${pom.version} autoupdate=true +max.download.threads=3 #temp.directory defaults to System.getProperty("java.io.tmpdir") #temp.directory=[path to temp directory] # the path to the data directory; if tis data.directory=[JAR]/data -# the path to the lucene index to store the cpe data -data.cpe=cpe # the path to the h2 database to store the nvd cve data data.cve=cve