[FIR] Add gradle property for extending jvmArgs of modularized test
This commit is contained in:
@@ -47,6 +47,14 @@ projectTest {
|
|||||||
jvmArgs!!.removeIf { it.contains("-Xmx") }
|
jvmArgs!!.removeIf { it.contains("-Xmx") }
|
||||||
maxHeapSize = "8g"
|
maxHeapSize = "8g"
|
||||||
dependsOn(":dist")
|
dependsOn(":dist")
|
||||||
|
|
||||||
|
run {
|
||||||
|
val argsExt = project.findProperty("fir.modularized.jvm.args") as? String
|
||||||
|
if (argsExt != null) {
|
||||||
|
val paramRegex = "([^\"]\\S*|\".+?\")\\s*".toRegex()
|
||||||
|
jvmArgs(paramRegex.findAll(argsExt).map { it.groupValues[1] }.toList())
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testsJar()
|
testsJar()
|
||||||
Reference in New Issue
Block a user