Allows configuring maxParallelForks as system property (#2482)

* Allows configuring maxParallelForks as system property
This commit is contained in:
Maksymilian Pawlak 2018-02-12 13:10:03 +01:00 committed by GitHub
parent a9109e0855
commit 1218fa037e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,6 +168,10 @@ allprojects {
tasks.withType(Test) {
// Prevent the project from creating temporary files outside of the build directory.
systemProperties['java.io.tmpdir'] = buildDir
if (System.getProperty("test.maxParallelForks") != null) {
maxParallelForks = Integer.valueOf(System.getProperty("test.maxParallelForks"))
}
}
group 'net.corda'