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

RTC 4.0 - problem with line termination

We are using RTC 4.0.0.1 integrated with Worklight Studio 5.0.5
When we run a build for the Android environment, the .classpath file is regenerated, and the line terminations are set to the Android standard, that is, <LF>
However, when we checkin it, RTC reinsert the <CR> in order to reproduce the Windows line termination (we are working on Windows workstations).
We have already set the .classpath file extension to the binary behavior, according to 

http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fc_lineterm.html

but apparently it did not work....
Any suggestions?

0 votes


Accepted answer

Permanent link
Check the line delimiter settings for your file types.

1. Go to Window > Preferences > Team > Jazz Source Control > File Properties.
2. Look for your resource type. If it doesn't exist, you will have to add the type.
3. Set your line delimiter for the type to LF.

New files will be set to the LF line delimiter.

You'll still have to change your existing files to the correct line delimiter.

1. Go to the Package Explorer and select the projects that you want to change the line delimiters.
2. Right-click and go to Team > Change File Properties...
3. A dialog will appear where you can change the line delimiters for each resource type.
4. Check-in and deliver your changes.
Luca Martinucci selected this answer as the correct answer

1 vote

Comments

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
× 12,019

Question asked: Jan 17 '13, 4:49 a.m.

Question was seen: 4,078 times

Last updated: Jan 21 '13, 10:41 a.m.

Confirmation Cancel Confirm