A temporary hack to remove generated files from IDEA indexing.

Review Request #26 — Created Feb. 26, 2014 and submitted

jsirois
commons
jsirois/idea_exclude_hack
225
travis
commit d89cccb73dc68572e62e1988d264921ccd066bc8
Author: John Sirois <jsirois@twitter.com>
Date:   Wed Feb 26 10:59:08 2014 -0700

    A temporary hack to remove generated files from IDEA indexing.

 src/python/twitter/pants/tasks/templates/idea/module-12.mustache | 4 ++++
 1 file changed, 4 insertions(+)


This ports over internal work done by Fedor in RB 285899.
$ ./pants.bootstrap goal idea --idea-project-name=test --idea-project-cwd=$PWD --idea-project-dir=$PWD/sandbox/users/jsirois/ide-projects/idea --no-idea-open src/java/com/twitter/common/base/
$ echo "<x>$(xmllint --format --xpath //excludeFolder sandbox/users/jsirois/ide-projects/idea/test.iml)</x>" | xmllint --format -
<?xml version="1.0"?>
<x>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/util/testing"/>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/net/http/filters"/>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/net/http/filters"/>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/thrift/text"/>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/thrift/testing"/>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/logging/log4j"/>
  <excludeFolder url="file:///home/jsirois/dev/3rdparty/commons/src/java/com/twitter/common/logging/scribe"/>
  <excludeFolder url="file://${module.root_dir}/.pants.d"/>
  <excludeFolder url="file://$MODULE_DIR$/external-libs"/>
  <excludeFolder url="file://$MODULE_DIR$/external-libsources"/>
  <excludeFolder url="file://$MODULE_DIR$/internal-libs"/>
  <excludeFolder url="file://$MODULE_DIR$/internal-libsources"/>
</x>

JS
TR
  1. Ship It!
  2. 
      
JS
Review request changed

Status: Closed (submitted)

Loading...