It's all about the answers!

Ask a question

How to refresh a resource using scm cli


Aruljothi Sivakurunathan (3198) | asked Nov 24 '10, 2:35 p.m.
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

3 answers



permanent link
Shashikant Padur (4.1k27) | answered Nov 30 '10, 3:33 a.m.
JAZZ DEVELOPER
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.

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

permanent link
mike vesen (6) | answered Nov 30 '10, 8:23 a.m.
It dont work! Does any others know?

permanent link
Shashikant Padur (4.1k27) | answered Dec 01 '10, 12:58 a.m.
JAZZ DEVELOPER
Which one does not work? 'refresh' or 'status'? Can you please list out the steps?

It dont work! Does any others know?

Your answer


Register or to post your answer.