Skip to content

Commit

Permalink
HHH-8145 - Add MaxPermSize to test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Apr 5, 2013
1 parent 64cbd2f commit e037fcb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Expand Up @@ -196,7 +196,7 @@ subprojects { subProject ->
Set<String> privatePackages = new HashSet<String>()

// 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 ->
Expand All @@ -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" )
Expand Down Expand Up @@ -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( {
Expand Down

0 comments on commit e037fcb

Please sign in to comment.