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

Problem of displaying C++ files correctly through RTCWeb UI

Hello all,
I am importing a legacy C++ project (not written in MSVS) using Elipse RTC plugin. My Elipse Version is 3.6.1 with Build id: M20100909-0800, and the plug in I installed is RTC-Client-p2Repository-2.0.0.2. I tried two ways: import it into Elipse workspace as a general project and then upload to the RTC server by sharing project, 2) install the CDP parser and load it as C++ project and then share the project. For both the above, another user can load it and view it correctly (as text files) via the Eclipse client. But from the Web UI,all the files are shown as binary and thus can not be viewed correctly.

Has anyone come across the same issue? Any suggestions of how to make it show as c++ files via the web UI?

Thanks,
Yingjie

0 votes



2 answers

Permanent link
Hi - the workaround is to set the content type of your c++ files to text/plain instead of application/unknown.

1. Select the project in the navigator > Team > Change File Properties...
2. The dialog should list the extensions it discovered, e.g. *.cpp. You can assign them to text/plain (anything text/.... will be displayed as text in web ui).
3. Deliver these changes to your stream

If this doesn't help or isn't clear, you can have a look at the related work item at https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/153064 or open your own work item with details on where you need further help.

HTH.
Christophe Cornu
SCM Client Lead

0 votes

Comments

Hi Christophe,

I ran into this problem today and the did the above solution. It worked fine for the current version of the files affected.

If I go back in history, I still cannot see the comparison because the older file versions are set to application/unknown.

1) Is there any way to fix this?
2) Is there any way to set global rules such that any new stream that is created will automatically recognize extensions, and we don't run into this problem again?

Thanks,

Vivek


Permanent link
HI, Christophe,
It helps.
Thanks,
Yingjie

Hi - the workaround is to set the content type of your c++ files to text/plain instead of application/unknown.

1. Select the project in the navigator > Team > Change File Properties...
2. The dialog should list the extensions it discovered, e.g. *.cpp. You can assign them to text/plain (anything text/.... will be displayed as text in web ui).
3. Deliver these changes to your stream

If this doesn't help or isn't clear, you can have a look at the related work item at https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/153064 or open your own work item with details on where you need further help.

HTH.
Christophe Cornu
SCM Client Lead

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: Apr 15 '11, 9:44 a.m.

Question was seen: 4,739 times

Last updated: Oct 05 '12, 10:59 a.m.

Confirmation Cancel Confirm