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?
Accepted answer
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.
Comments
FYI, the File Properties wizard Help topic is here http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.team.scm.doc/topics/t_scm_eclipse_lineterm_wiz.html