How to stop a rational team concert (RTC) by changing the encoding of a text file?

I need to integrate some source code from ClearCase (CC) into RTC, but some like some XML files were changed after checking in RTC. These files contain the same content as the original from CC, but the final code has been modified. For example, an Unix encoded xml file will be changed to Dos after checking in RTC.

I do not know if this will affect the project, perhaps this problem may arise. But I prefer the code to remain like CC. Is there any way to do this? Not sure where to do it.

+6
source share
1 answer

As mentioned in this thread , this is because .xml have the " Line Delimiter " property set to " Platform ". This is the default value for RTC.

The linear delimiter of a versioned file is a managed version in the RTC repository.
The part that represents the client-side configuration is the rule that determines that a line separator should be used for a new file that is under version control for the first time.

So the problem is that you cannot change the eol style you need: these are local properties defined by the client (here the Eclipse RTC GUI), managed by the File Properties Wizard .

Common problems:


The settings are described here :

Procedure

  • From the Eclipse main menu, click Window > Preferences and go to Team > Jazz source control
  • On the File Properties page, you can see how the Rational Team Concert control currently matches the file name suffix to the MIME content type and line separators.
    You can also change these mappings and add new ones.
    File types and their properties are displayed in a hierarchical list.
    The properties of an element in the list are inherited by its children.
    Inherited properties are not displayed (table cell is empty).
    • To change the type of line separator, click an item in the list and select the type of list form.
    • To add a new file name extension and its properties, click Add File/Extension .
    • To delete an existing mapping, click it, and then click Delete.
  • Click OK to save and exit.
+8
source

All Articles