Eclipse - White space causing all text files to show up as having conflicts  
Author Message
whitteng





PostPosted: 2006-6-15 5:05:00 Top

java-programmer, Eclipse - White space causing all text files to show up as having conflicts When we do a CVS synchornization in Eclipse, the Java files work well,
but ALL (dozens) of text
files show up as having conflicts, apparently because white space is
NOT being ignored. When
we ignore white space on a file by file basis, the conflicts disappear.
But we have not been
able to ignore white space globally, so we have to go through our
dozens of text files one by one, which
is very tedious and time consuming.

How do we GLOBALLY avoid white space characters causing text files
looking like they have
conflicts when doing an Eclipse CVS synchronize.

 
Paul Hamaker





PostPosted: 2006-6-17 20:53:00 Top

java-programmer >> Eclipse - White space causing all text files to show up as having conflicts Maybe this helps:
Window
Preferences
General
Compare/Patch : check Ignore white space
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com

 
whitteng





PostPosted: 2006-6-20 5:47:00 Top

java-programmer >> Eclipse - White space causing all text files to show up as having conflicts Paul - Thanks but that option is already selected with, apparently, no
effect. We still
have the same problem.

Thanks,
Gary Whitten
email***@***.com

Paul Hamaker wrote:
> Maybe this helps:
> Window
> Preferences
> General
> Compare/Patch : check Ignore white space
> --------------------
> Paul Hamaker, SEMM, teaching ICT since 1987
> http://javalessons.com

 
 
Robert Mabee





PostPosted: 2006-6-22 1:39:00 Top

java-programmer >> Eclipse - White space causing all text files to show up as having conflicts email***@***.com wrote:

> When we do a CVS synchornization in Eclipse, the Java files work well,
> but ALL (dozens) of text
> files show up as having conflicts, apparently because white space is
> NOT being ignored. When
> we ignore white space on a file by file basis, the conflicts disappear.
> But we have not been
> able to ignore white space globally, so we have to go through our
> dozens of text files one by one, which
> is very tedious and time consuming.
>
> How do we GLOBALLY avoid white space characters causing text files
> looking like they have
> conflicts when doing an Eclipse CVS synchronize.

Perhaps you'll have to look inside CVS. It used to be all shell
scripts.

Alternatively, you could standardize on one white space form that
Eclipse is comfortable with, require all developers to use that and
refrain from adjusting indentation of existing code, and take the
one-time hit of checking in canonical forms of the existing sources.

I'd look at the CVS repository files. They used to be plain text
and line-oriented 'diff' output so a cheap trick would be to use a
white-space-canonicalizing program on them, although this might make
back versions indent wrong (if the diff lines start with line numbers
that affect tab position). Of course you'd make a backup before
tampering with vital files.