load example

load example.

Example

Load the entire contents of repository workspace that is named HelloJazz, using stored credentials for the repository nicknamed jazzhost, into a new subdirectory of C:\local-workspaces:

C:\local-workspaces> lscm load -r jazzhost HelloJazz
Downloading /com.example.hellojazz.rcp.ui/.project  (689 B)
Downloading /com.example.hellojazz.rcp.ui/build.properties  (109 B)
Downloading /com.example.hellojazz.service/plugin.xml  (529 B)
Downloading /com.example.hellojazz.service/.project  (690 B)
Downloading /com.example.hellojazz.service/build.properties  (109 B)
Downloading /com.example.hellojazz.client.tests/TestHelloJazz.launch  (2.6 KB)
Downloading /com.example.hellojazz.rcp.ui/.classpath  (307 B)
Downloading /com.example.hellojazz.rcp.ui/HelloJazzClient.launch  (1.7 KB)

Keyword expansion

You can enable keyword expansion when you load content from a repository. When keyword expansion is enabled, any occurrence of a keyword in a file is converted to its expanded form. For example, the expanded form of $VersionId$ for a file whose version ID is 10 is $VersionId: 10$.

When keyword expansion is enabled for a load, all text files (files whose line delimiter is set to a value other than NONE) are processed for keyword expansion. To disable keyword expansion for a file, add the scm:keyword user property with a value of false.

Table 1. Supported keywords
Keyword Description
$VersionId$ The version ID of the file.
$LongVersionId$ the long version ID of the file. For example, VersionId@repoId.
$ItemId$ The UUID that identifies the file.
$StateId$ The UUID that identifies the specific state of the file.
$Date$ The last modified date of the file in the repository.
$Name$ The name of the file in the repository.

Keyword expansion example

The file name properties.txt version 10 contains # $Name$ $VersionId$. If loaded by using the command line interface with the --expand-keywords argument, the loaded content is:

# $Name: properties.txt$ $VersionId: 10$


video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki