Access parent project stream name [message #1758759] |
Sun, 02 April 2017 04:41  |
Eclipse User |
|
|
|
Hi,
I have a root project with two subprojects. I would like to have the user only select the stream in the parent project, not in the subprojects, which feels natural I think. The parent project basically defines the target platform, which differs depending on the selected stream. The sub-projects then checkout the corresponding branches and import source code with source-locator targlets.
I have to replace ${scope.project.stream.name} (Used in git checkout branch attribute) with an expression that yields the parent project stream name. Is this possible?
|
|
|
|
|
|
Re: Access parent project stream name [message #1758802 is a reply to message #1758793] |
Mon, 03 April 2017 06:45   |
Eclipse User |
|
|
|
It's a good question, but given there is only one clone task, no matter which streams of the subprojects are chosen, there will only be only merged clone task and it will check out only one branch. So it's kind of irrelevant if inconsistent branches are chosen. And in the end, you can have a variable to choose the branch that's checked out, rather than using the stream's name, so you provide the choice of which branch via to check out via the variables view so that it's not possible to choose an inconsistent combination. Also, with filters that use prompted variable values, you can make things conditional based on variables, so you might not need subprojects at all...
|
|
|
|
Powered by
FUDForum. Page generated in 0.04256 seconds