2

Can IntelliJ include a source directory contained in an excluded directory?

I am using Google Protocol Buffers and am placing the generated class files in the target/proto-generated directory. I have already excluded the target directory, is there a way to mark proto-generated as a source directory and leave the target directory excluded?

  • target <excluded>
    • classes
    • proto-generated <include>
Rylander
  • 19,449
  • 25
  • 93
  • 144
  • 1
    See http://youtrack.jetbrains.com/issue/IDEABKL-6054 for the workaround. – CrazyCoder Mar 12 '13 at 20:30
  • can you share your build.gradle file ! thanks . – issamux Sep 28 '16 at 22:36
  • @issamux This was more than 3 years ago... I don't have access to that code anymore. – Rylander Sep 29 '16 at 15:06
  • @MikeRylander , no problems... i ve solved my problem, and it wasn't related to this, so , thanks :) – issamux Sep 30 '16 at 19:10
  • I've same problem. Basically, generated model files of *.protoc are generated into target/proto-generated directory, so the intellisense of intelij is not working for those model classes. Is there anyway to work around with this? Thx. – auxdx Dec 19 '16 at 04:22

1 Answers1

0

Thanks CrazyCoder for

"See youtrack.jetbrains.com/issue/IDEABKL-6054 for the workaround."

Rylander
  • 19,449
  • 25
  • 93
  • 144