Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

how load only one file within a component with scm load

how load only one file within a component with scm load:

It should be a probleme of syntax with / and \

My component : COMP

My file in a folder : folder/onefile.txt

scm load ... COMP/folder/onefile.txt  -> Coud not find remote item "/folder/onefile.txt" 

scm load ... COMP\folder\onefile.txt -> unable to find component "COMP\folder\onefile.txt"

scm load ... COMP \folder\onefile.txt -> unable to find component "\folder\onefile.txt"

scm load ... COMP/folder\onefile.txt -> Coud not find remote item "/folder\onefile.txt" 

scm load ... COMP\folder/onefile.txt -> Unexpected exception...

scm load ... COMP/\folder\onefile.txt -> Coud not find remote item "/\folder\onefile.txt"

scm load ... COMP\\folder\onefile.txt -> unable to find component "COMP\\folder\onefile.txt"

scm load ... COMP//folder\onefile.txt -> Coud not find remote item "/folder\onefile.txt"

The file is present in the component, i load it in his folder if i load all the component

...

What is the good syntax? 

0 votes



2 answers

Permanent link
 Hello,
according to the Infocenter , SCM load "Loads the contents of the specified workspace into the local file system. By default, the workspace is loaded into the current working directory."

So not sure if you can use SCM load to load a single file.

Thanks,
Eric.

1 vote

Comments

It's possible by the RTC interface:

Right-click on the component of the repository workspace -> context menu show -> repository file, in the view, rigth-click on the file -> context menu load or load as...

It should be possible by line command, no?

the syntax is:

Usage: scm load [options] <workspace> [remote-path...]

 else, what is [remote-path...]?

Best Regards.

It doesn't look like you tried any w/o the leading directory delimiter (except where you provided component name.   

remote-path The list of remote items to load. The remote-path might be the name, alias, or UUID of a component, or a remote path within a component.



Permanent link
Here is an example of loading a single file from the command line...

c:\test>scm ls comp 1151
Workspace: (1151) "commandline" <-> (1147) "cli"
  Component: (1152) "commandline Default Component"
  Component: (1166) "Test Cases" 

c:\test>scm ls rf -r ella 1151 1152 --depth -
/
/CliTest2/
/CliTest2/CommandLine_Readme3.txt
/CliTest2/CommandLine_Readme2.txt
/CliTest2/CommandLine_Readme1.txt
/CliTest3/
/CliTest3/CommandLine_Readme3.txt
/CliTest3/CommandLine_Readme2.txt
/CliTest3/CommandLine_Readme1.txt

1151 is the workspace alias and 1152 is the component alias. You can also specify the name or uuid instead of alias for each of these items.

Remote path with component name included in the remotepath:
c:\test\load>scm load 1151 "commandline Default Component/CliTest2/CommandLine_Readme3.txt"
Successfully loaded items into the sandbox.

Remote path with component alias included in the remotepath:
c:\test\load>scm load 1151 1152/CliTest2/CommandLine_Readme2.txt
Successfully loaded items into the sandbox.

Note: Aliases are temporary and should not be used in scripts.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 1,381
× 57
× 56

Question asked: Sep 03 '13, 8:50 a.m.

Question was seen: 10,377 times

Last updated: Sep 05 '13, 12:46 a.m.

Confirmation Cancel Confirm