HHH-7749 - Allow setting system properties for tests on gradle command line

This commit is contained in:
Steve Ebersole 2012-11-02 13:54:20 -05:00
parent 06b0faaf57
commit d11165d4d2
1 changed files with 1 additions and 6 deletions

View File

@ -178,13 +178,8 @@ subprojects { subProject ->
)
test {
// pass along command line defined system props (-D) to the test
// pretty sure I used to have this limited to just certain prefixes, but that is no longer here
// and I no longer remember that groovy-magic needed to accomplish that
// TODO: Temporarily removing -- was causing issues with
// entitymanager tests.
//systemProperties = System.properties
systemProperties['hibernate.test.validatefailureexpected'] = true
systemProperties += System.properties.findAll { it.key.startsWith( "hibernate.") }
maxHeapSize = "1024m"
}