Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

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

0 votes



3 answers

Permanent link
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

0 votes


Permanent link
It dont work! Does any others know?

0 votes


Permanent link
Which one does not work? 'refresh' or 'status'? Can you please list out the steps?

It dont work! Does any others know?

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: Nov 24 '10, 2:35 p.m.

Question was seen: 7,218 times

Last updated: Nov 24 '10, 2:35 p.m.

Confirmation Cancel Confirm