Bug 1107811 - Part 4: Exclude all but mobile/. r=me
authorNick Alexander <nalexander@mozilla.com>
Wed, 02 Dec 2015 14:57:12 -0800
changeset 275696 7fb27cc3a41695df71c52db2bf093fdf8cdb43be
parent 275695 2735a465e5582f716c68d6e12546074ab5e0432b
child 275697 d0c607c9de0b75f3d2e968f99b9c03539ac8156c
push id16578
push usernalexander@mozilla.com
push dateSun, 06 Dec 2015 01:35:20 +0000
treeherderfx-team@7fb27cc3a416 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1107811
milestone45.0a1
Bug 1107811 - Part 4: Exclude all but mobile/. r=me
build.gradle
--- a/build.gradle
+++ b/build.gradle
@@ -96,23 +96,24 @@ idea {
     project {
         languageLevel = '1.7'
     }
 
     module {
         // Object directories take a huge amount of time for IntelliJ to index.
         // Exclude them.  Convention is that object directories start with obj.
         // IntelliJ is clever and will not exclude the parts of the object
-        // directory that are referenced, if there are any.
-        // In practice, indexing the entirety of the tree is taking too long.
+        // directory that are referenced, if there are any.  In practice,
+        // indexing the entirety of the tree is taking too long, so exclude all
+        // but mobile/.
         def topsrcdirURI = file(topsrcdir).toURI()
         excludeDirs += files(file(topsrcdir)
             .listFiles({it.isDirectory()} as FileFilter)
             .collect({topsrcdirURI.relativize(it.toURI()).toString()}) // Relative paths.
-            .findAll({it.startsWith('obj') && !it.startsWith('.') && !it.equals('mobile/')}))
+            .findAll({!it.equals('mobile/')}))
 
         // If topobjdir is below topsrcdir, hide only some portions of that tree.
         def topobjdirURI = file(topobjdir).toURI()
         if (!topsrcdirURI.relativize(topobjdirURI).isAbsolute()) {
             excludeDirs -= file(topobjdir)
             excludeDirs += files(file(topobjdir).listFiles())
             excludeDirs -= file("${topobjdir}/gradle")
         }