File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -78,3 +78,21 @@ task cleanEclipseJdtUi(type: Delete) {
78
78
tasks[" eclipseJdt" ]. dependsOn(eclipseJdtPrepare)
79
79
tasks[" cleanEclipse" ]. dependsOn(cleanEclipseJdtUi)
80
80
tasks[" eclipse" ]. dependsOn(eclipseSettings, eclipseWstComponent)
81
+
82
+
83
+ // Filter 'build' folder
84
+
85
+ eclipse. project. file. withXml {
86
+ def node = it. asNode()
87
+
88
+ def filteredResources = node. get(" filteredResources" )
89
+ if (filteredResources) {
90
+ node. remove(filteredResources)
91
+ }
92
+ def filterNode = node. appendNode(" filteredResources" ). appendNode(" filter" )
93
+ filterNode. appendNode(" name" , " build" )
94
+ filterNode. appendNode(" type" , " 26" )
95
+ def matcherNode = filterNode. appendNode(" matcher" )
96
+ matcherNode. appendNode(" id" , " org.eclipse.ui.ide.multiFilter" )
97
+ matcherNode. appendNode(" arguments" , " 1.0-projectRelativePath-matches-false-true-build\\ /((?!eclipse).)*" )
98
+ }
You can’t perform that action at this time.
0 commit comments