The macro compares the current build result to a snapshot identified by name to generate a list of change sets, added components, and removed components.
The macro supports Team Build Attributes, as well as, its own macro specific attributes. Click on a 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 |
| file | The path to a file where the generated change log is written. The path can be an absolute path or a path relative to the base directory of the build file. | Yes |
| last | The name of the snapshot to use in the comparison. | Yes |
| property | Name of the property in which to store the generated change log. | 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="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>
<!-- - - - - - - - - - - - - - - - - - - *
* Example *
*- - - - - - - - - - - - - - - - - - - -->
<target name="main" description="main">
<GetChangeLogLastSnapshotName
file="ChangeLog.txt"
last="LastSnapshot"
property="changeLogProperty"
/>
</target>
<target depends="main" description="all" name="all"/>
</project>