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
|
|
|
|
Re: Line delimiter problem in configuration files. [message #695799 is a reply to message #693824] |
Tue, 12 July 2011 14:11  |
Eclipse User |
|
|
|
On 07.07.2011 11:19, Rolf Wojtech wrote:
> We recently stumbled across the same problem. Apparently it hasn't
> changed in the last 7 years. Does anyone know a solution or a better
> workaround?
You don't need a workaround. You should mark the '.classpath' file as
being ASCII in CVS (Team > Change ASCII/Binary Property...). That way it
will use the correct line delimiters on whatever platform you use and
you won't see noise in the diff.
Dani
|
|
|
Powered by
FUDForum. Page generated in 0.03603 seconds