Modify content in Stream programmatically without workspace
![]() 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
![]()
Ralph Schoon (63.3k●3●36●46)
| 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
The basis for my work was here: https://thescmlounge.blogspot.com/2013/10/committing-content-to-rtc-scm-with-sdk.html
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
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.