Delta builds with RTC's build engine
Hi,
Does anyone have advicce on how I can use RTC's build engine with ANT to produce delta builds?
I have the following problems:-
1) The builds can take a very long time and are 80% mainframe code.
2) I only want to build/compile source code that has changed since the last build or the last baseline.
I cannot see any method presently available that will let me know what has changed since the last baseline and therefore cannot influence what ANT builds.
The only way I can currently think of is to write a bit of java code that will examine the workspace directly to obtain a list of files that has changed since the component baseline.
Am I going down the right path?
Cheers,
Michael Baylis
IBM Hursley
Does anyone have advicce on how I can use RTC's build engine with ANT to produce delta builds?
I have the following problems:-
1) The builds can take a very long time and are 80% mainframe code.
2) I only want to build/compile source code that has changed since the last build or the last baseline.
I cannot see any method presently available that will let me know what has changed since the last baseline and therefore cannot influence what ANT builds.
The only way I can currently think of is to write a bit of java code that will examine the workspace directly to obtain a list of files that has changed since the component baseline.
Am I going down the right path?
Cheers,
Michael Baylis
IBM Hursley
2 answers
You should be able to use the SCM java API to find out what files have
changed since the last build. There is the question of how you
determine the "last baseline" that you want to compare with.
I'll defer to the Jazz SCM team to comment on whether this is feasible,
and if so, to provide some code pointers.
I also submitted work item 87057 to extend the command line to provide
this "diff" capability (I don't think diff is available yet via the
command line).
Cheers,
Geoff
michaelbaylis wrote:
changed since the last build. There is the question of how you
determine the "last baseline" that you want to compare with.
I'll defer to the Jazz SCM team to comment on whether this is feasible,
and if so, to provide some code pointers.
I also submitted work item 87057 to extend the command line to provide
this "diff" capability (I don't think diff is available yet via the
command line).
Cheers,
Geoff
michaelbaylis wrote:
Hi,
Does anyone have advicce on how I can use RTC's build engine with
ANT to produce delta builds?
I have the following problems:-
1) The builds can take a very long time and are 80% mainframe code.
2) I only want to build/compile source code that has changed since the
last build or the last baseline.
I cannot see any method presently available that will let me know what
has changed since the last baseline and therefore cannot influence
what ANT builds.
The only way I can currently think of is to write a bit of java code
that will examine the workspace directly to obtain a list of files
that has changed since the component baseline.
Am I going down the right path?
Cheers,
Michael Baylis
IBM Hursley
Take a look at: http://jazz.net/library/article/195
It outlines how to use the "scm compare" command line to diff against a
'last baseline'. There's a switch that outputs the changed filenames
within the change sets, so with a bit of parsing I think you could manage
to set up your delta build.
On Tue, 07 Jul 2009 00:11:30 -0400, Geoffrey Clemm
<geoffrey> wrote:
It outlines how to use the "scm compare" command line to diff against a
'last baseline'. There's a switch that outputs the changed filenames
within the change sets, so with a bit of parsing I think you could manage
to set up your delta build.
On Tue, 07 Jul 2009 00:11:30 -0400, Geoffrey Clemm
<geoffrey> wrote:
You should be able to use the SCM java API to find out what files have
changed since the last build. There is the question of how you
determine the "last baseline" that you want to compare with.
I'll defer to the Jazz SCM team to comment on whether this is feasible,
and if so, to provide some code pointers.
I also submitted work item 87057 to extend the command line to provide
this "diff" capability (I don't think diff is available yet via the
command line).
Cheers,
Geoff
michaelbaylis wrote:
Hi,
Does anyone have advicce on how I can use RTC's build engine with
ANT to produce delta builds?
I have the following problems:-
1) The builds can take a very long time and are 80% mainframe code.
2) I only want to build/compile source code that has changed since the
last build or the last baseline.
I cannot see any method presently available that will let me know what
has changed since the last baseline and therefore cannot influence
what ANT builds.
The only way I can currently think of is to write a bit of java code
that will examine the workspace directly to obtain a list of files
that has changed since the component baseline.
Am I going down the right path?
Cheers,
Michael Baylis
IBM Hursley