It's all about the answers!

Ask a question

How do I specify a component subfolder to load using scm.exe


Pete Monger (111) | asked Sep 03, 9:11 a.m.
edited 20 hours ago

The scm command line help says:

C:\IBM\RTC-scmTools-Win-6.0.3\jazz\scmtools\eclipse>scm help load

Help for: scm load

Purpose:
  Loads the contents of the specified workspace into the local file system. By
  default, the workspace is loaded into the current working directory.

Usage: scm load [-r/--repository-uri <arg>] [-u/--username <arg> -P/--password
                <arg> | -u/--username <arg> --password-file <arg> |
                --certificate <arg> -P/--password <arg> | --smartCard
                -u/--username <arg> | --kerberos | --integratedWindows]
                [-d/--directory <arg>]  [-q/--quiet] [--all] [-f/--force]
                [--allow] [-s/--resync] [--preserveTimestamps]
                [--expand-keywords] [-i/--include-root] [-R/--remote-rules
                <arg>] [-L/--local-rules <arg>] [-t/--target <arg>]
                [-a/--alternative-name <arg>] <workspace> [remote-path...]

  workspace   - The workspace to load. To specify the workspace, use its
                name[@repo], alias, or UUID[@repo].
  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.  To specify a remote path within a component, use
                the following format: (name, alias, or UUID of the
                component)/(remote path within the component).

I have this working to download a whole Component, but how do I only download a subfolder?
If the last parameter, remote-path, is the component name, e.g. "Alpha" it downloads the whole Alpha component, but if I change remote-path to "Alpha/ABCD", where ABCD is a top-level folder in the Alpha component, it says Failure looking up path "/ABCD"

UPDATE:
If I do a scm list files command on the component, it displays the /ABCD/ folder under the "Alpha" component, as expected, so why does it say it can't find the path?

Be the first one to answer this question!


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.