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.
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
May 24 '16, 7:35 a.m.Any comments or feedback.