Forward gradle properties with prefix "fd." to test runner as system property("-D") w/o this prefix
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user