It's all about the answers!

Ask a question

initializing/creating files in CM repository using scm comma


Ian Barnard (2.0k613) | asked Nov 14 '08, 10:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I guess its easy when you're using Eclipse in a project, to create the files in the scm repository, but I'm not and I can't find out how to setup e.g. some xml files under config mgmt using the scm.exe command-line interface. Help!?!

One answer



permanent link
Evan Hughes (2.4k1318) | answered Nov 18 '08, 2:10 p.m.
JAZZ DEVELOPER
It's easy with RTC and it's easy with the CLI too.

Here's a quick and easy recipe for getting started. If you haven't already done so, II recommend that you take a look at the online docs and the CLI's help ($ scm help).

0. Login to your repo and give it a nickname of 'l' (as in "local").

1. Create a new repo workspace:
$ scm create workspace -r l myNewWorkspace
Workspace (6076) "myNewWorkspace" successfully created
Component (6077) "myNewWorkspace Default Component" successfully created

2. Share your files into that workspace:
$ scm share -r l myNewWorkspace 6077 /tmp/shareDir/files4u
Uploading files...
Shared successfully

3. List the contents of the remote workspace
$ scm list remotefiles -r l myNewWorkspace 6077
/
/files4u/
/files4u/someFile
/files4u/.project


NOTES:
- '6077' is the alias of the component named "myNewWorkspace Default Component". The alias is shorter to type, so I used that. I could have used the full name.
- Other directories can be shared out of /tmp/shareDir

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.