Tell IJ NOT to scan for sources

I am at a company that has a LARGE shared codebase that is accessed via symbolic link.  

How the heck do I tell IJ NOT TO SCAN FOR SOURCES when creating a new module?  It HANGS FOREVER then I have to kill it.

Simply need the ability to tell explicitly what are source dirs.  

There does not appear to be any option for this: IJ goes ahead and scans underneath the content root  "without asking".

So .. what then?   Must I do something awkward .. like defining an alternate content root?  That's a bad hack.

3 comments
Comment actions Permalink

If you're not actually editing those shared files, you can compile them once and create a library with the classes (or jar if you'd prefer).  You can then defined the sources for the library.

If you have a maven project for that, things become significant faster if you install the jar and sources, then include them into your main maven process (since IDEA will download and parse once the sources and classes, also easier to update).

0
Comment actions Permalink

Thanks for the reply.  

I can not create libs for the readonly code: as mentioned it is a symbolic link to a huge codebase that contains many thousands of libraries.

0
Comment actions Permalink

you could investigate iml file structure and edit it by hand prior to open the project. just add necessary excluded path in iml and then open project. Also condider to vote for IDEA-52055 Idea indexes excluded folders

0

Please sign in to leave a comment.