Bug 1219846 - Pre: Index less in IntelliJ. r=me
authorNick Alexander <nalexander@mozilla.com>
Thu, 29 Oct 2015 19:53:51 -0700
changeset 304425 17d6649e04327407d58b6a7f16a1188263f1e251
parent 304423 886cca3bbec69b60604d71af31b066a4a7a993e0
child 304426 8b66ed0e3cf1210d5898d7647c9c378d5c13f23b
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1219846
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 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")