Why does IntelliJ mark .java files as executables?

I’m on a team where some developers are using Eclipse and others are using IntelliJ 12.1.3, all under Windows 7. The Eclipse users are noticing diffs on the properties of .java files. The specific change is visible with cygwin’s ls
command: the executable bit is set on user, group and other. What causes this? Is there a way to tell IntelliJ not to monkey with this bit?

Found this: http://youtrack.jetbrains.com/issue/IDEA-74433

By default, on each save IDEA creates a new file, writes to it, drops original, and renames new file. Setting idea.no.safe.write disables this behavior (original file is just rewritten instead).

Further down..

It is now configured via GUI - File | Settings | General | Use "safe write". You need to un-check it.

The thread says the root cause is because the original files are over sftp (which wasn’t true for me, all my files are on the local filesystem), but this fixed it for me.

Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Why does IntelliJ mark .java files as executables?

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录