It's all about the answers!

Ask a question

Can Windows RTC store Unix files?


Jirong Hu (1.5k9290258) | asked Nov 11 '11, 2:23 p.m.
Hi

I believe the ClearCase I am converting has both unix files and windows files in the same VOB. The original files from the vendor were in unix format and the new in house changes are in Windows format, or something like that.

In this case, I am not using CC Importer. I just add files into RTC from a CC snapshot view or a copy.

I notice, no matter how I create the CC view (transparent or insert_cr), after shared the project into RTC, RTC changed the some files' sizes. If I use transparent, RTC changes this set of file, if I use insert_cr, it changes that set of files. So after added project into RTC, when I compare the original snapshot view and RTC sandbox, there is always some files have different sizes. Actually their content is the same.

Is there a way I can keep the file format when adding files into RTC? We have RTC both server and client in Windows. Is there a way to store unix files (the original format in ClearCase) in RTC? Or I am not doing it right?

Thanks
Jirong

One answer



permanent link
Geoffrey Clemm (30.1k33035) | answered Nov 11 '11, 11:53 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
When you say "unix files and windows files", I assume you are talking
about line endings, i.e. LF vs. CRLF?

If so, the file size differences are probably due to line-ending
conversion. One way to see the line-endings of a file is to use the
Eclipse editor, with the "show line endings" preference turned on.

As I recall, RTC-SCM infers the line endings for a file based on the
filename and a set of preferences in your Eclipse environment. So it
may be converting the content of the files that do not match their
declared content type. (I haven't had a chance to play around with this
recently).

Cheers,
Geoff

On 11/11/2011 2:38 PM, hujirong wrote:
Hi

I believe the ClearCase I am converting has both unix files and
windows files in the same VOB. The original files from the vendor
were in unix format and the new in house changes are in Windows
format, or something like that.

In this case, I am not using CC Importer. I just add files into RTC
from a CC snapshot view or a copy.

I notice, no matter how I create the CC view (transparent or
insert_cr), after shared the project into RTC, RTC changed the some
files' sizes. If I use transparent, RTC changes this set of file, if
I use insert_cr, it changes that set of files. So after added project
into RTC, when I compare the original snapshot view and RTC sandbox,
there is always some files have different sizes. Actually their
content is the same.

Is there a way I can keep the file format when adding files into RTC?
We have RTC both server and client in Windows. Is there a way to
store unix files (the original format in ClearCase) in RTC? Or I am
not doing it right?

Thanks
Jirong

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.