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

How to determine is file has been modified?

Hello,
I am trying to determine if a workspace resource has been modified, and
needs to be delivered to the stream.

Calling isLocallyModified() on the IShareable does not provide this
information. How should one determine if a resource has been changed?

Regards,
Sri.

0 votes



One answer

Permanent link
See the ILocalChangeManager and the ISharingManager for hints. These will provide access to resources that have been modified but not checked-in.

Once checked-in, you can compare a repository workspace with a stream or another repo workspace and get the list of outgoing change-sets. There are many examples of this in the JUnits, search for callers of IWorkspaceConnect.deliver in the tests.

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
× 10,953

Question asked: Oct 18 '07, 7:43 p.m.

Question was seen: 7,551 times

Last updated: Oct 18 '07, 7:43 p.m.

Confirmation Cancel Confirm