~russel/devjavasoft/trunk

« back to all changes in this revision

Viewing changes to build.gradle

  • Committer: Russel Winder
  • Date: 2012-05-17 19:02:12 UTC
  • Revision ID: russel@russel.org.uk-20120517190212-u7s5ku05o9ycbilu
Update the IntelliJ IDEA project build to the latest IntelliJ IDEA needs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
  project {
193
193
    ipr {
194
194
      withXml { provider ->
195
 
        def node = provider.asNode ( )
196
 
        def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }
197
 
        vcsConfig.mapping[0].'@vcs' = 'Bazaar'
198
 
        def gradleSettings = node.appendNode ( 'component' , [ name : 'GradleSettings' ] )
199
 
        gradleSettings.appendNode ( 'option' , [ name : 'SDK_HOME' , value : gradle.gradleHomeDir.absolutePath ] )
 
195
        final node = provider.asNode ( )
 
196
        node.component.find { it.'@name' == 'VcsDirectoryMappings' }.mapping[0].'@vcs' = 'Bazaar'
 
197
        final gradleSettings = node.appendNode ( 'component' , [ name : 'GradleSettings' ] )
 
198
        gradleSettings.appendNode ( 'option' , [ name : 'linkedProjectPath' , value : '$PROJECT_DIR$/build.gradle' ] )
200
199
      }
201
200
    }
202
201
  }