Skip to content

Instantly share code, notes, and snippets.

@ukdave
Created October 3, 2013 21:31
Show Gist options
  • Save ukdave/6817448 to your computer and use it in GitHub Desktop.
Save ukdave/6817448 to your computer and use it in GitHub Desktop.
Hide gradle's 'build' folder from Eclipse
eclipse {
project {
file {
withXml { xmlProvider ->
Node project = xmlProvider.asNode()
Node filter = project.appendNode('filteredResources').appendNode('filter')
filter.appendNode('id', 1379968350622)
filter.appendNode('name', '')
filter.appendNode('type', 26)
Node matcher = filter.appendNode('matcher')
matcher.appendNode('id', 'org.eclipse.ui.ide.multiFilter')
matcher.appendNode('arguments', '1.0-projectRelativePath-matches-false-false-build')
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment