Jazz SCM and text line-endings
5 answers
Hi David,
Jazz SCM is aware of whether a file is text, but that's just the first step.
See 10832 for the work that is currently being done on line endings.
There are no easy answers (don't believe anyone who tells you there are :-).
Cheers,
Geoff
davidward@us.ibm.com wrote:
Jazz SCM is aware of whether a file is text, but that's just the first step.
See 10832 for the work that is currently being done on line endings.
There are no easy answers (don't believe anyone who tells you there are :-).
Cheers,
Geoff
davidward@us.ibm.com wrote:
Is the Jazz SCM aware of which files are text and which are binary ??
Put another way, would a stream source file be reflected on the Windows
RTC client using CRLF line endings and on Unix/Linux using LF line
endings ??
(and on Mac OSX using CR line endings)
Dave
Now that RTC has GA'ed, I'm looking again at the issue of line-endings
in source files.
Here's my use-case:
Many members (even most) of my team do their development work on Win32
workstations so, the SCM streams contain source that was delivered to
Jazz mostly with CRLF (Windows) line-endings.
One of our Jazz build engines must run on a system using Unix LF
line-endings and that engine will be pulling source from the same
streams as mentioned above. The compilers there will get quite upset if
they're given source with Windows line-endings.
I've read the workitem mentioned below but I'm looking for some
'external' details about how line-ending are configured to RTC (or is it
Eclipse ?) and whether/when/how conversion is done ?
Any help appreciated
Cheers
Geoffrey Clemm wrote:
in source files.
Here's my use-case:
Many members (even most) of my team do their development work on Win32
workstations so, the SCM streams contain source that was delivered to
Jazz mostly with CRLF (Windows) line-endings.
One of our Jazz build engines must run on a system using Unix LF
line-endings and that engine will be pulling source from the same
streams as mentioned above. The compilers there will get quite upset if
they're given source with Windows line-endings.
I've read the workitem mentioned below but I'm looking for some
'external' details about how line-ending are configured to RTC (or is it
Eclipse ?) and whether/when/how conversion is done ?
Any help appreciated
Cheers
Geoffrey Clemm wrote:
Hi David,
Jazz SCM is aware of whether a file is text, but that's just the first
step.
See 10832 for the work that is currently being done on line endings.
There are no easy answers (don't believe anyone who tells you there are
:-).
Cheers,
Geoff
davidward@us.ibm.com wrote:
Is the Jazz SCM aware of which files are text and which are binary ??
Put another way, would a stream source file be reflected on the
Windows RTC client using CRLF line endings and on Unix/Linux using LF
line endings ??
(and on Mac OSX using CR line endings)
Dave
It sounds like you want to set the line-endings of your text files to be
"platform".
To make this change on a single file:
- Open the package explorer view
- Right click on the text file you want to change
- Select "Team -> Change File Properties"
At that point, the dialog box that pops up should be self-explanatory,
but please feel free to post a question if it is not.
To make this change on a large number of files at once, just right click
on a parent folder in the package explorer view, and the operation will
be applied to all files in that folder.
Cheers,
Geoff
David Ward wrote:
"platform".
To make this change on a single file:
- Open the package explorer view
- Right click on the text file you want to change
- Select "Team -> Change File Properties"
At that point, the dialog box that pops up should be self-explanatory,
but please feel free to post a question if it is not.
To make this change on a large number of files at once, just right click
on a parent folder in the package explorer view, and the operation will
be applied to all files in that folder.
Cheers,
Geoff
David Ward wrote:
Now that RTC has GA'ed, I'm looking again at the issue of line-endings
in source files.
Here's my use-case:
Many members (even most) of my team do their development work on Win32
workstations so, the SCM streams contain source that was delivered to
Jazz mostly with CRLF (Windows) line-endings.
One of our Jazz build engines must run on a system using Unix LF
line-endings and that engine will be pulling source from the same
streams as mentioned above. The compilers there will get quite upset if
they're given source with Windows line-endings.
I've read the workitem mentioned below but I'm looking for some
'external' details about how line-ending are configured to RTC (or is it
Eclipse ?) and whether/when/how conversion is done ?
Any help appreciated
Cheers
Geoffrey Clemm wrote:
Hi David,
Jazz SCM is aware of whether a file is text, but that's just the first
step.
See 10832 for the work that is currently being done on line endings.
There are no easy answers (don't believe anyone who tells you there
are :-).
Cheers,
Geoff
davidward@us.ibm.com wrote:
Is the Jazz SCM aware of which files are text and which are binary ??
Put another way, would a stream source file be reflected on the
Windows RTC client using CRLF line endings and on Unix/Linux using LF
line endings ??
(and on Mac OSX using CR line endings)
Dave
I see you can also do this in Window->Preferences->Team->Jazz
Thanks Geoff
Geoffrey Clemm wrote:
Thanks Geoff
Geoffrey Clemm wrote:
It sounds like you want to set the line-endings of your text files to be
"platform".
To make this change on a single file:
- Open the package explorer view
- Right click on the text file you want to change
- Select "Team -> Change File Properties"
At that point, the dialog box that pops up should be self-explanatory,
but please feel free to post a question if it is not.
To make this change on a large number of files at once, just right click
on a parent folder in the package explorer view, and the operation will
be applied to all files in that folder.
Cheers,
Geoff
David Ward wrote:
Now that RTC has GA'ed, I'm looking again at the issue of line-endings
in source files.
Here's my use-case:
Many members (even most) of my team do their development work on Win32
workstations so, the SCM streams contain source that was delivered to
Jazz mostly with CRLF (Windows) line-endings.
One of our Jazz build engines must run on a system using Unix LF
line-endings and that engine will be pulling source from the same
streams as mentioned above. The compilers there will get quite upset
if they're given source with Windows line-endings.
I've read the workitem mentioned below but I'm looking for some
'external' details about how line-ending are configured to RTC (or is
it Eclipse ?) and whether/when/how conversion is done ?
Any help appreciated
Cheers
Geoffrey Clemm wrote:
Hi David,
Jazz SCM is aware of whether a file is text, but that's just the
first step.
See 10832 for the work that is currently being done on line endings.
There are no easy answers (don't believe anyone who tells you there
are :-).
Cheers,
Geoff
davidward@us.ibm.com wrote:
Is the Jazz SCM aware of which files are text and which are binary ??
Put another way, would a stream source file be reflected on the
Windows RTC client using CRLF line endings and on Unix/Linux using
LF line endings ??
(and on Mac OSX using CR line endings)
Dave