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
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
4 answers
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
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
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.
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.
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
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
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