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

Windows/Unix interop - CRLF - using the scm cmdline

Hi

We have a Windows client saving text files into an RTC server, then use the cmdline (scm) to extract the files from the server on to a Unix/Linux box. The files retain the CR/LF settings for Windows. Is there any way to force them to be converted to Unix CR/LF settings when the files are pulled down to the Unix/Linux box? I believe the files are not going to be changed on the Unix/Linux side.

thanks

anthony

0 votes



4 answers

Permanent link
Hi Anthony

There is a section in the RTC online help talking about "Specifying file properties and line delimiter types" , I am wondering if you have seen it and if that helps.

Follow the link on a browser on a machine that has RTC installed: http://127.0.0.1:59550/help/index.jsp?topic=/com.ibm.team.scm.doc/topics/t_scm_eclipse_file_properties.html

Cheers,

Hamid

1 vote


Permanent link
Hi Anthony,
I just had a similar problem where I was creating scripts in the client on windows, and then trying to execute those scripts in the build on a linux machine. I got around it by running this ant task:

<fixcrlf>

I also needed add execution permissions:

<chmod>

I couldn't find a way to do these operations in RTC but would be interested to hear if it is possible.

Regards, Alex.

0 votes


Permanent link
Hi Anthony,
I just had a similar problem where I was creating scripts in the client on windows, and then trying to execute those scripts in the build on a linux machine. I got around it by running this ant task:

<fixcrlf>

I also needed add execution permissions:

<chmod>

I couldn't find a way to do these operations in RTC but would be interested to hear if it is possible.

Regards, Alex.


Thanks Alex. If I find any other ways - I will let you know...

anthony

0 votes


Permanent link
I think you're looking for this:
http://publib.boulder.ibm.com/infocenter/rtc/v1r0m1/index.jsp.

I assume if the file is a text file and the delimiter property indicates
"platform", the line ends will be set correctly based on the paltform
when the files are loaded into the local workspace.

Brian

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: Feb 24 '09, 1:42 p.m.

Question was seen: 7,815 times

Last updated: Feb 24 '09, 1:42 p.m.

Confirmation Cancel Confirm