Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Line delimiter problem in configuration files.
Line delimiter problem in configuration files. [message #143081] Wed, 18 February 2004 21:49 Go to next message
Eclipse UserFriend
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 #693824 is a reply to message #143081] Thu, 07 July 2011 09:19 Go to previous messageGo to next message
Rolf Wojtech is currently offline Rolf WojtechFriend
Messages: 2
Registered: June 2010
Junior Member
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?
Re: Line delimiter problem in configuration files. [message #695799 is a reply to message #693824] Tue, 12 July 2011 14:11 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
Previous Topic:Calling my jdt plugin from a class
Next Topic:Classpath Container Implementation for Eclipse 3.6
Goto Forum:
  


Current Time: Thu Apr 25 21:49:20 GMT 2024

Powered by FUDForum. Page generated in 0.02848 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top