Line delimiter problem in configuration files. [message #143081] |
Wed, 18 February 2004 21:49 |
Eclipse User |
|
|
|
Originally posted by: if.you.want.to.email.visit.joshbrain.tripod.org
Hi,
Our group uses Eclipse, so we have .project and .classpath under version
control. This works great and is a very convenient way to share project
structure.
Unfortunately I have both a Windows and a Linux workstation. I noticed that
when I make a change to project build properties (resulting in a .classpath
change, for example) the resulting diff is very noisy - every line in the
file appears to have been changed, even though I only added one line.
The reason for the error is that my Windows Eclipse changes the line
delimiters of the .classpath file when it modifies the file. (Our preferred
line delimiters are Unix style LF).
The workaround is to open the .classpath file in the editor and do an
Edit|Convert Line Delimiters To|Unix and then perform the check in. This is
not, in general a huge hardship because .classpath and similiar files
change rarely (and should change rarely). But it would be nice if Eclipse
respects the native line delimiters of it's configuration files, just as
it's editors do. In addition, it would be nice to set the default line
delimiters for new configuration files as well.
Sincerely,
Josh Rehman
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03810 seconds