It's all about the answers!

Ask a question

How to creat new workspace without component with scmtools?


Guowei Jim Hu (1.0k910353) | asked Oct 24 '11, 11:28 a.m.
Using Eclipse client, one has the option to create a new empty workspace without the default workspace component.

How do I do that using scmtools command scm create?

3 answers



permanent link
Glenn Herbert (12667) | answered Nov 01 '11, 1:35 p.m.
Use the following three scm commands in sequence:

1. scm create workspace "ws_name" ... (creates workspace with default component)
2. scm workspace remove-component "default_comp_name"... (removes the default created component)
3. scm change-target unset-workspace "ws_name".... (removes the flow-target to the stream)

permanent link
Geoffrey Clemm (30.1k33035) | answered Nov 01 '11, 3:57 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
To avoid creating all those empty components (which currently cannot be
deleted), I'd suggest creating some dummy stream, and creating new
workspaces based on that stream (and then remove the flow-target).
i.e.

scm create workspace -s dummy-stream "ws_name"

Cheers,
Geoff

On 11/1/2011 1:38 PM, herbertg wrote:
Use the following three scm commands in sequence:

1. scm create workspace "ws_name" ... (creates workspace
with default component)
2. scm workspace remove-component "default_comp_name"...
(removes the default created component)
3. scm change-target unset-workspace "ws_name".... (removes
the flow-target to the stream)

permanent link
Glenn Herbert (12667) | answered Nov 01 '11, 4:35 p.m.
As long as you create the workspace against an existing steam, ie, using the --stream option, this problem is bypassed. A more user friendlier method might be to add a --nodefault-comp option and just avoid the problem altogether.

To avoid creating all those empty components (which currently cannot be
deleted), I'd suggest creating some dummy stream, and creating new
workspaces based on that stream (and then remove the flow-target).
i.e.

scm create workspace -s dummy-stream "ws_name"

Cheers,
Geoff

On 11/1/2011 1:38 PM, herbertg wrote:
Use the following three scm commands in sequence:

1. scm create workspace "ws_name" ... (creates workspace
with default component)
2. scm workspace remove-component "default_comp_name"...
(removes the default created component)
3. scm change-target unset-workspace "ws_name".... (removes
the flow-target to the stream)

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.