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

How to build only Changed Java projects using common component and Build Definition

We consist of ~50 java projects. Each project under Services component ( common RTC component) is developed, so every project can be built into a WAR file using the same script.

The wish is to have a single build definition with a single ant script and have the "Build only if there are changes accepted" and "Delete directory before loading"  selected in the build definition.

By default, RTC will load all projects in component "Services" and the ant script would therefore not know which project to build. Building and deploying all projects is not an option.

Expectation: We only want to build and deploy the changed project ( java project) with in the same RTC component.

Note: Using Common Build Definition.

a) How only build changed java projects in common component ?
b) Can the ant build script somehow know which project has received changesets, so only this project is built ? If so could you please share more details.


1

2 votes

Comments

Any comments or feedback.



One answer

Permanent link
For all I know there is nothing built in. You will have to make sure that your build tools detect the changed java application and organize to only compile that. This is something you might be able with external tools, but you will have to create the automation yourself.

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
× 1,201
× 562

Question asked: May 18 '16, 9:47 a.m.

Question was seen: 3,911 times

Last updated: Jun 01 '16, 11:27 p.m.

Confirmation Cancel Confirm