HHH-6676 change the Intellij metadata generated by gradle idea task configuration (max heap size to 512M by default)

This commit is contained in:
Strong Liu 2011-09-26 00:37:40 +08:00
parent b552f70726
commit 67f803c69d
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ ideaProject {
def node = provider.asNode()
def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }
vcsConfig.mapping[0].'@vcs' = 'Git'
def maxHeapSizeConfig = node.component.find { it.'@name' == 'JavacSettings' }
if( maxHeapSizeConfig == null ){
def javacSettingsNode = node.appendNode('component',[name: 'JavacSettings'])
javacSettingsNode.appendNode('option', [name:"MAXIMUM_HEAP_SIZE", value:"512"])
}
}
beforeConfigured { module ->
module.modulePaths.removeAll { it.filePath.endsWith('hibernate-core.iml') }