Bug 1107811 - Part 4: Exclude all but mobile/. r=me
authorNick Alexander <nalexander@mozilla.com>
Wed, 02 Dec 2015 14:57:12 -0800
changeset 275699 7fb27cc3a41695df71c52db2bf093fdf8cdb43be
parent 275698 2735a465e5582f716c68d6e12546074ab5e0432b
child 275700 d0c607c9de0b75f3d2e968f99b9c03539ac8156c
push id29767
push usercbook@mozilla.com
push dateMon, 07 Dec 2015 10:53:01 +0000
treeherderautoland@528ea05671e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1107811
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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")
         }