how to add a file into RTC (EWM) Stream/workspace using SCM ?
Hi,
I am still developing a tool in python that spimplify RTC usage.
In this context, I am searching a better solution for the use case where the user want to add a file to the project (existing or new file).
For now, I saw that you can't share (SCM share) a file that is the child of a sandbox directory. So I think you have to create a file in a random directory, then share into the workspace and after reload the workspace in order to have the new file in the local sandbox, in order to be able to work on it.
Speaking of that, if you load your workspace with a loadrule, I guess you have to update the loadrule at the same time... Otherwise the new file will not be loaded.
Is there a more elegant solution to this use case ?
(I can only use python)
One answer
There is no Python API for EWM.
For EWM SCM operations you can either use the SCM command line or the JAVA APIs.
Just because the EWM Client or the SCM command line does things in certain ways, does not mean the Java API would be limited to this.
Some things you can do are used here: https://github.com/jazz-community/ewm-scm-utils