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