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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With