No bug - Exclude all but mobile/. draft
authorNick Alexander <nalexander@mozilla.com>
Wed, 02 Dec 2015 14:57:12 -0800
changeset 313973 ff0c71ea02ad245605335aa915402f30a3cd4427
parent 313972 aca3f7a5a2bfb7df3263a2de6c32c4ad09b73542
child 313974 563d9d809a373a1100cb60e62fdbd85cf6c43f09
push id8160
push usernalexander@mozilla.com
push dateThu, 03 Dec 2015 21:21:45 +0000
milestone45.0a1
No bug - Exclude all but mobile/.
build.gradle
--- a/build.gradle
+++ b/build.gradle
@@ -94,23 +94,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")
         }