[JS & Wasm tests] Load properties from root local.properties file too
This commit is contained in:
@@ -328,13 +328,13 @@ fun Test.setUpBoxTests() {
|
|||||||
systemProperty("overwrite.output", project.providers.gradleProperty("overwrite.output")
|
systemProperty("overwrite.output", project.providers.gradleProperty("overwrite.output")
|
||||||
.forUseAtConfigurationTime().orNull ?: "false")
|
.forUseAtConfigurationTime().orNull ?: "false")
|
||||||
|
|
||||||
val localProperties = Properties().apply {
|
val rootLocalProperties = Properties().apply {
|
||||||
project.file("local.properties").takeIf { it.isFile }?.inputStream()?.use {
|
rootProject.file("local.properties").takeIf { it.isFile }?.inputStream()?.use {
|
||||||
load(it)
|
load(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val allProperties = localProperties + properties
|
val allProperties = properties + rootLocalProperties
|
||||||
|
|
||||||
val prefixForPropertiesToForward = "fd."
|
val prefixForPropertiesToForward = "fd."
|
||||||
for ((key, value) in allProperties) {
|
for ((key, value) in allProperties) {
|
||||||
|
|||||||
Reference in New Issue
Block a user