It's all about the answers!

Ask a question

Problem of displaying C++ files correctly through RTCWeb UI


yingjie li (61) | asked Apr 15 '11, 9:44 a.m.
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

2 answers



permanent link
Christophe Cornu (47123) | answered Apr 16 '11, 4:49 p.m.
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

Comments
Vivek Iyer commented Oct 05 '12, 10:59 a.m.

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
yingjie li (61) | answered Apr 18 '11, 4:31 p.m.
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

Your answer


Register or 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.