It's all about the answers!

Ask a question

Is there a way for parent-child relationships for source code in RTC?


Donathan Raymond (111) | asked Dec 04 '17, 8:51 a.m.
retagged Jan 04 '18, 10:30 a.m. by Ken Tessier (84117)

 My company is looking to change the way we configure our projects in RTC, and I was wondering if there was a way to have parent-child relationships for source code between different project areas.


What we'd like is to create a new project area for a specific application, and have our base code act as a parent so the new app inherits this code, and then build the new application on top of it. 

That way, if we ever update the base code, we can simply accept the changes in the child app instead of going to each one and updating each project manually. 

I've tried using multiple components where the base code is one and app-specific code is another, but eclipse would see them as two separate project whereas we need them to be one.

Has anyone ever tried something like this?

Thank you 

2 answers



permanent link
Ken Tessier (84117) | answered Jan 04 '18, 10:30 a.m.

permanent link
Geoffrey Clemm (30.1k33035) | answered Dec 04 '17, 5:26 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Since you are asking about inheriting changes from a parent to a child, you are asking about streams, not project areas.   (Project areas can be used for access control to the various SCM artifacts, but are not relevant to determining how changes flow).

You would have a stream for the parent code, and a stream for each of the children, and create a "flow" relation between each child and the parent, both to document this intended flow, and to allow use of the Pending Changes view to perform the flow.   When a given child is ready to get changes from the parent, a user would issue the "accept" operation which would bring all of the changes from the parent stream to the child stream.   If you want to automate this flow (assuming there are no conflicts), you can have a script do it automatically, or even add a custom post-condition to the parent stream to automatically flow the changes to all the children immediately after they are delivered to the parent.

WRT loading multiple components into a single Eclipse project, that is an unrelated question ... if you are having trouble doing that, please post it as a separate question.

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.