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

How to create a new Stream using snapshot programatically

I am trying to create a new Stream using snapshot. The following code executes without any error. It created the stream but there is no component or snapshot associated with the stream.

part of the code snippet:

stream = manager.createStream(project, streamName, description, monitor);
stream.addBaselineSet(ibaselineset, monitor);

We are trying to automate the source migration from different SCM into RTC. Any help is appreciated.

Laxman

0 votes



2 answers

Permanent link
IFlowNodeConnection.addBaselineSet() promotes a snapshot. It doesn't modify the workspace's configuration.

If you want to replace the current configuration of a component with the configuration contained in a baseline or snapshot, you should look into the IWorkspaceUpdateOperation.replace() family of methods.

e

0 votes

Comments

So is it possible to create streams from snapshot using plain java API ?


Permanent link
Could you provide more inputs to it how a stream could be created from snapshot using plain java API ?

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,944

Question asked: Aug 19 '10, 4:11 p.m.

Question was seen: 6,884 times

Last updated: Apr 10 '13, 8:28 a.m.

Confirmation Cancel Confirm