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
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
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
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
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
HI, Christophe,
It helps.
Thanks,
Yingjie
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