My java project has files which have same name but different cases (Test.java & test.java). I have setup a case sensitive file system on my mac and am able to view/edit them via CLI. However, Intellij Idea does not regard them as different and compilation fails. How can I fix Intellij Idea to honor cases for a file name?
I filed a support request at JetBrains. Here is the answer:
add "idea.case.sensitive.fs=true" to bin/idea.properties file (https://intellij-support.jetbrains.com/entries/23395793 ), perform File | Invalidate Caches and restart the IDE.
It solved the issue for me.
update: 2015-02-14 / Idea 14.0.3
It is no longer sufficient to add the property to the idea.properties file. Add
-Didea.case.sensitive.fs=true to "Settings | ... | Java Compiler | Additional command line parameters".