Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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:

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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936

Question asked: Jul 06 '09, 8:49 a.m.

Question was seen: 6,488 times

Last updated: Jul 06 '09, 8:49 a.m.

Confirmation Cancel Confirm