Ignore folders starting with a dot in IntelliJ

The project I'm working on has folders with a name starting with a dot. They are used by an external tool to generate actual code / property changes based on some properties. IntelliJ complains about the Java classes in these folders (the path does not match the package name). What I would like to do is make the compiler ignore certain folders (they should not be used in the build anyway). I found Settings-> Compiler-> Exclude, but I don’t see the folder with the start point when I try to specify exceptions. Insert folder also does not work. Not sure if this seems like a problem with a hidden Intellij or mac folder. Any clues?

+6
source share
2 answers

In the module editor, set the folder that will be excluded from the project, i.e. completely ignored. Select a folder and click the "Excluded" button. Then the folder will be shown in red and will not even be displayed in the IDEA project view, and there will be no indexing or compilation in this folder.

enter image description here

+12
source

You can "Show hidden files and directories", which should be the last icon in the "Select path" window.

enter image description here

+3
source

Source: https://habr.com/ru/post/886312/


All Articles