From dff0b497b07745a82e3aeb100071599e91a0b2d0 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: 4b2175859ada2e8d375486627235ea8892f8d7ce --- .../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