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

How do I use the plain java api to deliver outgoing change sets for one component?

This article ... http://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/ ... shows how to deliver all outgoing change sets for all components. 

Is there a way to deliver the change sets for only one component?

I'm guessing I might be able to do this by populating excludedComponents in IChangeSyncHistoryReport.compareTo(remoteFlowNode, flags, excludedComponentsmonitor) with all the IComponentHandle values except the one who's outgoing change sets  I want to deliver.

Is there another way?

0 votes


Accepted answer

Permanent link
I'm not sure what you're looking for since the article you posted seems to describe what you want to do. The actual deliver code only gets the baselines and change sets for a specified component.
mark byrd selected this answer as the correct answer

0 votes

Comments

I see what I did wrong now. When I wrote code to test this, I left out component


repoWorkspace.deliver(targetStream, changeSetSync,
Collections.EMPTY_LIST,
changeSetSync.outgoingChangeSets(component), monitor);

Since both outgoingChangeSets() and outgoingChangeSets(IComponentHandle component) are valid methods, I was not testing what I though I was.. 

Thanks. Sorry I bothered you. My bad.

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
× 12,019

Question asked: Jul 09 '14, 2:24 p.m.

Question was seen: 2,505 times

Last updated: Jul 09 '14, 3:44 p.m.

Confirmation Cancel Confirm