The macro is used to load the contents of the specified workspace into the local file system. By default, the workspace is loaded into the current working directory.
The macro supports the SCM Macro Common Attributes, as well as, its own macro specific attributes. Click on the link for more information on the common attributes.
The following table describes the macro specific attributes for the macro:
| Macro Specific Attributes | ||
| Attribute | Description | Required |
| 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). | No |
| workspace | The workspace to load. To specify the workspace, use its name[@repo], alias, or UUID[@repo]. | Yes |
This macro specifies the following options on the SCM command:
--allow
--directory <arg>
The following options can be added to the command using the additionalArgs element:
--all
--alternative-name <arg>
--expand-keywords
--force
--include-root
--local-rules <arg>
--preserveTimestamps
--quiet
--remote-rules <arg>
--resync
--target <arg>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed Materials - Property of IBM
(c) Copyright IBM Corporation 2020. All Rights Reserved.
Note to U.S. Government Users Restricted Rights:
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.
-->
<project
basedir="."
default="all"
name="Example"
xmlns:xt="antlib:com.ibm.team.build.extensions.toolkit">
<description>Example</description>
<!-- Load build extensions -->
<xt:loadBuildExtensions/>
<xt:getJarLocation property="jarPath"/>
<!-- Load common resources -->
<import>
<javaresource name="scripts/smpe/imports/$common.xml">
<classpath location="${jarPath}"/>
</javaresource>
</import>
<import>
<javaresource name="scripts/smpe/imports/$scmcmd.xml">
<classpath location="${jarPath}"/>
</javaresource>
</import>
<xt:setPassword password="${password}" property="passwd"/>
<property name="userId" value="ADMIN"/>
<property name="conf" value="/var/MacroTestingScm/.jazz-scm"/>
<property name="root" value="/var/MacroTestingScm/root"/>
<property name="scmd" value="/var/MacroTestingScm/zips/scmtools/eclipse"/>
<!-- - - - - - - - - - - - - - - - - - - *
* Example *
*- - - - - - - - - - - - - - - - - - - -->
<target name="main" description="main">
<!-- Scm -->
<ScmProperties
authenticate="Password"
repository="repositoryAddress"
password="passwd"
userid="userId"
cfg="conf"
dir="root"
scm="scmd"
/>
<!-- Load -->
<ScmLoad workspace="${workspace}"/>
</target>
<target depends="main" description="all" name="all"/>
</project>