improved build script structure and explanations

improved IDE configuration
This commit is contained in:
Peter Niederwieser
2012-03-01 01:26:51 +01:00
parent 57ddb0d3fe
commit ff0342ace4
3 changed files with 39 additions and 22 deletions
+19
View File
@@ -0,0 +1,19 @@
apply plugin: "idea"
apply plugin: "eclipse"
def gitIgnoreDirs = files(file(".gitignore").readLines().findAll { !it.trim().startsWith("#") && it.trim().endsWith("/") })
idea {
project {
jdkName "1.6"
configure(modules) {
excludeDirs = gitIgnoreDirs as Set
}
ipr {
withXml { provider ->
def node = provider.asNode()
node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git'
}
}
}
}