Fix gradle IDEA code for git selection as VCS.

This commit is contained in:
Luke Taylor 2011-04-20 14:20:56 +01:00
parent 71ed6d7964
commit 1b2fdf8b02

View File

@ -117,8 +117,9 @@ ideaModule {
ideaProject {
javaVersion = '1.6'
subprojects = [rootProject] + javaProjects
withXml { node ->
withXml { provider ->
// Use git
def node = provider.asNode()
def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }
vcsConfig.mapping[0].'@vcs' = 'Git'
}