Exclude Files from Module Content Roots

Is there a way to exlude files from java module content, like you can with directories? Or to include single source files like you can with source directories?

What I am trying to do is cope with a source tree where a large number of the files are old and not needed but can't be removed. I can exclude the files from compile but not stop intellij from seeing them.

Thanks, Jasper

Please sign in to leave a comment.