Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore folders beginning with dot in IntelliJ

In project I work on there are folders with name started with dot sign. They are used by external tool to generate actual code/properties variation based on some properties. IntelliJ complains about java classes in these folders (path doesn't correspond to package name). What I'd like to do is to force the compiler to ignore specific folders (they shouldn't be used in build anyway). I found Settings->Compiler->Excludes option but I can't see the dot started folders when I try to specify exclusions. Pasting folder path doesn't work either. Not sure if it is like that because of Intellij or mac hidden folder issue. Any hints?

like image 527
Marcin Szymaniuk Avatar asked Apr 20 '11 12:04

Marcin Szymaniuk


People also ask

Why can't I upload files to IntelliJ server?

You have already downloaded the data from the server and arranged them in an IntelliJ IDEA project. However, for this or that reason, you need to have some files or folders on the server protected against upload/download, for example, to prevent accidental overwriting.

What do the not-excluded folders and files look like?

The names of all the not-excluded folders and files are displayed on green background. The names of excluded items are displayed without background. In the Remote Host tool window, you can exclude both entire folders and specific files.

How to process remote sources in IntelliJ IDEA?

To process these remote sources in IntelliJ IDEA, you have to download them and arrange them in a project. However, there are some sources that you should not update at all. On the other hand, the folders on the remote host also may contain huge amounts of media, caches, temporal files, that you actually do not need in your work.

How do I exclude items by name in Jira?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Build, Execution, Deployment | Deployment | Options. In the Options dialog that opens, specify the patterns that define the names of these files and folders in the Exclude items by name field.


1 Answers

In the module editor, set the folder to be excluded from the project, i.e totally ignored. Select the folder and then click on the "Excluded" button. Then the folder will be shown in red and will not even show up in IDEA project view, and no indexing or compiling will take place on this folder.

enter image description here

like image 193
BertNase Avatar answered Nov 14 '22 23:11

BertNase