Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Jazz SCM and text line-endings

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

0 votes



5 answers

Permanent link
Thanks again Geoff

I'll take a look at that item

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
I see you can also do this in Window->Preferences->Team->Jazz

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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 02 '07, 4:07 p.m.

Question was seen: 6,995 times

Last updated: Nov 02 '07, 4:07 p.m.

Confirmation Cancel Confirm