end of line in project/module files

When project/modules are created on Windows .ipr and .iml files are
written with CR/LF characters.
Store the entire project into version control system (Subversion in my
case).
I check out the project on Linux.
There are differences how Idea6 and Idea7 handles EOL:
- Idea6 preserved CR/LF, which was good
- Idea7 immediately writes .ipr and .iml files with Linux end of line
character LF, which is bad
In Idea7, .ipr and .iml files become marked as different from the latest
VCS revision. They differ only by end of line character, but I trust my
IDE, so I check them in. Than, another developer, working on Windows, is
trying to figure out what I changed.

Is there any way to force Idea7 to use the same end-of-line character on
every OS?
What was the reason to change the behavior from version 6 to 7? Or maybe
it is just oversight?

TomP

3 comments

Make sure you have the Subversion property svn:eol-style set to "native"
for your shared .iml and .ipr files (you probably already have it for
.java files).
I'm not sure anything changed in this area from Idea 6 to Idea 7...
R

0

Robert,

Something has changed: before posting, I run tests with Idea6 and Idea7.
I don't mind if Idea7 writes .ipr or .iml files with different EOL
characters if files need to be changed (let's assume that I don't have
control over SVN server).
I run simple test:
- checked out Windows project on Linux (using svn command)
- waited a few minutes
- opened project on Linux
- didn't perform any other action
- time stamp and EOL characters of .ipr and .iml files have changed

TomP

0

Hello TomP,

Something has changed: before posting, I run tests with Idea6 and
Idea7.
I don't mind if Idea7 writes .ipr or .iml files with different EOL
characters if files need to be changed (let's assume that I don't have
control over SVN server).


To set the svn:eol-style property, you don't need any particular control
over the SVN server; you just need to have commit access.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.