Welcome to the Jazz Community Forum
How to refresh a resource using scm cli

Friends,
I am basically looking for a way to refresh an already shared resource which i modified externally (without RTC) so that i can checkin them using scm cli.
if i do this through RTC, I perform following steps
1) Modify a shared file content using notepad or wordpad
2) Launch RTC, Go to Resource view
3) Select proper folder where the resource exists
4) Right click and refresh
5) Modfied resource now appears on Pending Changes view
6) I'll then proceed to checkin and deliver
Now i want to automate above process for a build (this requires modifying and delivering a file automatically) using scm cli, but since i could not find a way to refresh using command line, I am getting "resource out of sync" exception.
Any help is greatly appreciated
Thanks in advance,
Aruljothi.S
I am basically looking for a way to refresh an already shared resource which i modified externally (without RTC) so that i can checkin them using scm cli.
if i do this through RTC, I perform following steps
1) Modify a shared file content using notepad or wordpad
2) Launch RTC, Go to Resource view
3) Select proper folder where the resource exists
4) Right click and refresh
5) Modfied resource now appears on Pending Changes view
6) I'll then proceed to checkin and deliver
Now i want to automate above process for a build (this requires modifying and delivering a file automatically) using scm cli, but since i could not find a way to refresh using command line, I am getting "resource out of sync" exception.
Any help is greatly appreciated
Thanks in advance,
Aruljothi.S
3 answers

Are you using 3.0? If so, there is 'lscm refresh' command where you can specify the paths to be refreshed.
If using 2.x, you have to use the 'lscm status' command but then it will refresh the entire component if the command is run within the component folder or refresh the entire workspace if run from the root.
If using 2.x, you have to use the 'lscm status' command but then it will refresh the entire component if the command is run within the component folder or refresh the entire workspace if run from the root.
Friends,
I am basically looking for a way to refresh an already shared resource which i modified externally (without RTC) so that i can checkin them using scm cli.
if i do this through RTC, I perform following steps
1) Modify a shared file content using notepad or wordpad
2) Launch RTC, Go to Resource view
3) Select proper folder where the resource exists
4) Right click and refresh
5) Modfied resource now appears on Pending Changes view
6) I'll then proceed to checkin and deliver
Now i want to automate above process for a build (this requires modifying and delivering a file automatically) using scm cli, but since i could not find a way to refresh using command line, I am getting "resource out of sync" exception.
Any help is greatly appreciated
Thanks in advance,
Aruljothi.S