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

Set line delimiter file property on check-in

Is there a way to force the  line delimiter value to a specific setting, e.g. LF (UNIX) for all source code when it is checked to avoid problems when developing across multiple platforms?

0 votes


Accepted answer

Permanent link
This functionality is requested in It should be possible to ensure that consistent mime type and line ending rules be applied to every file in a component (139709) .   Please feel free to add a comment to this work item to indicate your interest/support.
John Owen selected this answer as the correct answer

0 votes


One other answer

Permanent link
Hi John,

the only ways I have seen are:

1. In the Eclipse Preferences>Team>Jazz Source Control>File Properties you can modify the types and delimiters for various file types.
2. In the Eclipse Client, if you select a project in SCM. In the Context menu Team>Change File Properties you can change the file properties including the line delimiter the same way.
3. In The Eclipse Preferences>General>Workspace, you can set the default encoding and line delimiters in general.

I am not sure how that works across the team. I think you can export and share the preferences for Eclipse. However, I think that Eclipse and other tools miss the capability to share project wide preferences. I think a feature that provides you with the SCM preferences e.g. on a project or team level would be great. Only issue would be: what if you have SCM data with different preferences loaded? 

1 vote

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,024
× 1,204

Question asked: Nov 22 '12, 1:24 p.m.

Question was seen: 5,423 times

Last updated: Nov 23 '12, 10:29 a.m.

Confirmation Cancel Confirm