From e037fcb55f01af0fcb908608b400e639c5c1d09e Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 5 Apr 2013 14:40:43 -0500 Subject: [PATCH] HHH-8145 - Add MaxPermSize to test configuration --- build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 4fee2db3c8..b5140f7576 100644 --- a/build.gradle +++ b/build.gradle @@ -196,7 +196,7 @@ subprojects { subProject -> Set privatePackages = new HashSet() // TODO: Could more of this be pulled into utilities.gradle? - sourceSets.each { SourceSet sourceSet -> + sourceSets.each { sourceSet -> // skip certain source sets if ( ! ['test','matrix'].contains( sourceSet.name ) ) { sourceSet.java.each { javaFile -> @@ -206,7 +206,7 @@ subprojects { subProject -> final String[] temporaryExports = [ 'org.hibernate.boot.registry.classloading.internal', 'org.hibernate.internal.util' ] - + final String packageName = determinePackageName( sourceSet.java, javaFile ); if ( ! temporaryExports.contains( packageName ) && ( packageName.endsWith( ".internal" ) @@ -244,6 +244,8 @@ subprojects { subProject -> systemProperties['hibernate.test.validatefailureexpected'] = true systemProperties += System.properties.findAll { it.key.startsWith( "hibernate.") } maxHeapSize = "1024m" + // Not strictly needed but useful to attach a profiler: + jvmArgs '-XX:MaxPermSize=256m' } processTestResources.doLast( {