pass all System properties passed to Gradle that happen to start with 'hibernate.' to the System properties of the tests it spawns
This commit is contained in:
parent
93882f49dd
commit
3791267442
|
@ -206,8 +206,12 @@ subprojects { subProject ->
|
||||||
'Implementation-Vendor-Id': 'org.hibernate'
|
'Implementation-Vendor-Id': 'org.hibernate'
|
||||||
)
|
)
|
||||||
|
|
||||||
test {
|
tasks.withType(Test) {
|
||||||
systemProperties['hibernate.test.validatefailureexpected'] = true
|
System.getProperties().each { Map.Entry entry ->
|
||||||
|
if ( entry.key.startsWith( 'hibernate.') ) {
|
||||||
|
systemProperty entry.key, entry.value
|
||||||
|
}
|
||||||
|
}
|
||||||
maxHeapSize = "1024m"
|
maxHeapSize = "1024m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue