Is it possible to exclude a file from the content root in IntelliJ?

Viewed 3328

I want to exclude individual .java files from a Content Root in IntelliJ. The documentation on "Excluding Files from Project" suggests that this is not possible (it explicitly says This action is not applicable to Java files and binaries.)

Being incredulous to such a limitation, I have tried editing my .iml file, optimistically inserting XML elements such as <excludeFile> under the <content> element, but nothing seems to take.

Does anyone know a way to do this (documented or otherwise)? Or have any clue why this feature is not supported? By comparison, Eclipse allows for an arbitrary including pattern for a <classpathentry> element in its .classpath file.

1 Answers
Related