The macro is used to log the start of a build activity step. A build activity step is an intermediate activity within a build activity.
The following table describes the macro specific attributes for the macro:
| Macro Specific Attributes | ||
| Attribute | Description | Required |
| label | Label for the build activity step. | Yes |
<?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="ProductBuild"
xmlns:xt="antlib:com.ibm.team.build.extensions.toolkit">
<description>Test Macros</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>
<property name="lblInitParent" value="${ant.project.name}Init"/>
<!-- - - - - - - - - - - - - - - - - - - *
* ProductBuild init *
*- - - - - - - - - - - - - - - - - - - -->
<target name="init" description="${lblInitParent}">
<BuildActivity label="${lblInitParent}"/>
<BuildActivityChild label="${lblInitParent}.step"/>
</target>
<target depends="init" description="all" name="all"/>
</project>
Result:
init:
[xt:logMessage] 2020-03-03 16:50:31.883 ****** ProductBuildInit
[xt:logMessage] 2020-03-03 16:50:31.884 *** ProductBuildInit.step