Bug 1219846 - Pre: Index less in IntelliJ. r=me
authorNick Alexander <nalexander@mozilla.com>
Thu, 29 Oct 2015 19:53:51 -0700
changeset 304720 17d6649e04327407d58b6a7f16a1188263f1e251
parent 304597 886cca3bbec69b60604d71af31b066a4a7a993e0
child 304721 8b66ed0e3cf1210d5898d7647c9c378d5c13f23b
push id6985
push usermratcliffe@mozilla.com
push dateFri, 30 Oct 2015 17:34:30 +0000
reviewersme
bugs1219846
milestone45.0a1
Bug 1219846 - Pre: Index less in IntelliJ. r=me
build.gradle
--- a/build.gradle
+++ b/build.gradle
@@ -97,21 +97,22 @@ idea {
         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.
         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')}))
+            .findAll({it.startsWith('obj') && !it.startsWith('.') && !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")
             excludeDirs -= file("${topobjdir}/mobile")