Skip to content

Commit

Permalink
pass all System properties passed to Gradle that happen to start with…
Browse files Browse the repository at this point in the history
… 'hibernate.' to the System properties of the tests it spawns
  • Loading branch information
sebersole committed May 16, 2012
1 parent 93882f4 commit 3791267
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Expand Up @@ -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"
}

Expand Down

0 comments on commit 3791267

Please sign in to comment.