Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnscancella committed Apr 22, 2016
1 parent 741c6d8 commit bcabd1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eclipse.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ eclipse.project.file.withXml { provider ->
ignoreDerivedResources(provider.asNode())
}

def ignoreDerivedResources(projectDescription, directories = ["build", ".gradle", ".github"]) {
def ignoreDerivedResources(projectDescription, directories = ["build", ".gradle", ".git", ".settings"]) {
def count = directories.count { file(it).exists() }
if (count > 0) {
def filter = projectDescription
Expand All @@ -17,11 +17,9 @@ def ignoreDerivedResources(projectDescription, directories = ["build", ".gradle"
matcher.appendNode("id", "org.eclipse.ui.ide.orFilterMatcher")
def arguments = matcher.appendNode("arguments")
directories.each {
if (file(it).exists()) {
def dirMatcher = arguments.appendNode("matcher")
dirMatcher.appendNode("id", "org.eclipse.ui.ide.multiFilter")
dirMatcher.appendNode("arguments", "1.0-projectRelativePath-matches-false-false-${it}")
}
}
}
}

0 comments on commit bcabd1b

Please sign in to comment.