(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) IDE/Editor : (Category) CVS, VSS, ClearCase, etc :
We have developers using Windows and Linux. When we check in sources on Linux, the next Windows user who checks it out sees the source as double-spaced within JBuilder. What are we doing wrong?
CVS automatically handles newline conversions. When source files are checked in with cvs, it knows what the newlines in the file should look like and converts them to an internal representaton for the repository. When the files are checked out again, the internal representation is converted to the newline format native to the machine receiving the files.

Hence, a unix machine will receive files with unix newlines and a windows machine will receive files with windows newlines.

If you checkout a file on a windows machine, make changes, and then transfer the file to a unix machine to check it in, the unix cvs command will not perform the correct newline conversion as the file is written into the repository. The next windows user who checks out the file will receive it with extra newlines!

This situation is most common when a Samba share is being used to share source files between windows and unix developers. The samba share may or may not be configured to auto-convert text file newlines.

JBuilder will handle the file either way, as long as the newlines within the file are consistant (right or wrong.) However, JBuilder will get very confused if half the file has windows newlines and the other half has unix newlines.
2001-Jun-02 11:41am gyles19@visi.com

[Append to This Answer]
2001-Jun-12 12:21pm
Previous: (Answer) JBuilder's CVS doesn't update my project properly. New packages another user checked in (after I checked out my project) are missing even after an Update.
Next: (Answer) I have a project which contains gif/jpg files for its icons. I've added the gif files to my project and they are visible in the project pane. When I try to use CVS to create a module from this project, JBuilder excluded the gif/jpg files. When I try to 'cvs status' the file using the context menu, JBuilder responds with "CVS Status for this file is not applicable"
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=183
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]