Is there a way to pull the change log automatically?
One answer
RTC has 2 ways (assuming you are tracking your builds in RTC at the JBE/snapshot level):
1. There is an Ant task for generating a changelog documented at: http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.0/com.ibm.team.build.doc/topics/r_generatechangelog.html?lang=en
2. The RTC command-line 'diff' option: http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.0/com.ibm.team.scm.doc/topics/compare.html?lang=en
I'm assuing by 'automatically' you want a non-interactive (headless) way or generating this changelog for traceability purposes. I believe the SCM command-line and Ant task source code is in the RTC SDK (could be wrong, I've read this in other forum posts) so you can peek that for a native Java way of working with it.
Comments
Winston,
Jeff,
You have to do 2 things to pull in the RTC Ant tasks:
1. The first is expose the RTC Ant jars to Ant's classpath, which you have done above with the '-lib' argument.
2. Then inside your Ant script you have to use <taskdef> on BuildToolkitTaskDefs.xml to actually load the Ant tasks during Ant runtime, just as you would anything else like ant-contrib.
This is in the documentation at: http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.0/com.ibm.team.build.doc/topics/r_ant-tasks.html?lang=en
To use these Ant tasks in your scripts, from installdir/buildsystem/buildtoolkit/BuildToolkitTaskDefs.xml, where
installdir
is the location where you installed the Ant build toolkit, copy the various taskdef entries in the BuildToolkitTaskDefs.xml file to your project's Ant script. You can also use your Ant script to import the taskdef file.