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'
|
||||
)
|
||||
|
||||
test {
|
||||
systemProperties['hibernate.test.validatefailureexpected'] = true
|
||||
tasks.withType(Test) {
|
||||
System.getProperties().each { Map.Entry entry ->
|
||||
if ( entry.key.startsWith( 'hibernate.') ) {
|
||||
systemProperty entry.key, entry.value
|
||||
}
|
||||
}
|
||||
maxHeapSize = "1024m"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue