It's all about the answers!

Ask a question

Create repository workspace with one specific component


Tim Schumacher (122) | asked Nov 27 '13, 7:44 p.m.
retagged Dec 16 '13, 1:16 p.m. by David Lafreniere (4.4k7)
How to create repository workspace with one specific component?

scm create workspace -s   $STREAM   $REPO_WORKSPACE   

The above command gets all the components from the stream (if multiple components are present).

I am trying to get just one specific component into my repository workspace and I have tried combinations of commands like:

scm create workspace -s   $STREAM   $REPO_WORKSPACE    $COMPONENT


One answer



permanent link
Shashikant Padur (4.0k27) | answered Nov 27 '13, 10:50 p.m.
JAZZ DEVELOPER
edited Nov 27 '13, 10:53 p.m.
Tim,
You cannot do that in a single operation today. The create workspace command allows to
1) Create a workpace with one default component or
2) Create a workspace with no component or
3)  Create a workspace with a stream as the flow target and add all the components of the stream to the workspace or
4) Create a workspace and add all the components of the snapshot (with snapshot as the base) to the workspace.

To add a single component from a stream:
1) scm create workspace $REPO_WORKSPACE --empty
2) scm workspace add-components $REPO_WORKSPACE $COMPONENT
3) scm workspace change-target $REPO_WORKSPACE $STREAM

Allowing the capability to add one component from a stream would be a good addition to the create worksapce command.

Your answer


Register or to post your answer.