It's all about the answers!

Ask a question

Modify content in Stream programmatically without workspace


vinitha dsouza (14723136) | asked Nov 28 '23, 7:20 a.m.
edited Nov 28 '23, 7:21 a.m.

 Dear Team,


I have come across a code snippet developed by colleague which can modify the content of stream without workspace.
I was in an impression that, without workspace we shall not be able to deliver any content programmatically like we do manually from eclipse client. But there seems to be way.
I would like to understand, what is happening under the hoods?

one thing I noticed, when doing this way is,
I see the component is always shown as "*" even though there are no changes to this component.

is there any shortcomings doing this approach?

Thanks

Accepted answer


permanent link
Ralph Schoon (63.3k33646) | answered Nov 28 '23, 9:14 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Using the API allows usually more freedom in what you can do. You implement your own implementation of a "repository workspace". The files might sit in a zip file or just somewhere on disc.

 Using the API, you can upload code, create change sets, compare and deliver them to a Stream. 

I have used this in the WorkshopSetup for the EWM Extensions workshop. 

I have used the same code in this tool https://github.com/jazz-community/ewm-scm-utils
and in this tool to some extent: https://github.com/jazz-community/AnalyzeSCMContent


What your poor mans implementation of an auxiliary repository workspace will not be able to do, at least not easily, is to deliver changes with conflicting incoming changes, merging etc.

vinitha dsouza selected this answer as the correct answer

Your answer


Register or 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.