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:
Steve Ebersole 2012-05-16 11:59:22 -05:00
parent 93882f49dd
commit 3791267442
1 changed files with 6 additions and 2 deletions

View File

@ -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"
}