It's all about the answers!

Ask a question

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


2
1
Arun K Sriramaiah (3.2k13177) | asked May 18 '16, 9:47 a.m.
edited Jun 01 '16, 11:27 p.m. by David Lafreniere (4.8k7)
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.



Comments
Arun K Sriramaiah commented May 24 '16, 7:35 a.m.

Any comments or feedback.

One answer



permanent link
Ralph Schoon (63.1k33645) | answered May 24 '16, 8:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or 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.