Forward gradle properties with prefix "fd." to test runner as system property("-D") w/o this prefix

This commit is contained in:
Zalim Bashorov
2018-10-16 20:23:08 +03:00
parent 99a131d0ab
commit 8ac2582e24
+7
View File
@@ -62,6 +62,13 @@ projectTest {
systemProperty("kotlin.ant.classpath", antLauncherJar.asPath)
systemProperty("kotlin.ant.launcher.class", "org.apache.tools.ant.Main")
}
val prefixForPpropertiesToForward = "fd."
for((key, value) in properties) {
if (key.startsWith(prefixForPpropertiesToForward)) {
systemProperty(key.substring(prefixForPpropertiesToForward.length), value)
}
}
}
testsJar {}