RTC build how to execute more build.xml
Our stream has many Java projects, each project has its own build.xml.
So the build workspace targets to the stream has many Java projects.
We want to build all the projects.
But I see the build definition "Ant" tab only can point one build file.
How I deal with it?
Thanks!
|
Accepted answer
I would make a master build.xml file that would subsequently call the child Ant scripts. More information can be found here: http://ant.apache.org/manual/Tasks/subant.html
~Spencer
Ralph Schoon selected this answer as the correct answer
Comments
Jia Jia Li
commented Aug 14 '12, 9:59 a.m.
Thanks Sepncer, if the requirement is flexible to build all projects or some of the projects, what is your suggestion for it? And what is your master build.xml location? In any projects or in one separated component? If the set of projects to be built is flexible, then the master build.xml script needs to figure out which projects to build. I can't tell you the best way to do that because I don't know the criteria for what projects you want to build. The master build.xml script should probably be in its own project. That master project could be in an existing component or in its own component; I don't know what would work best for you. |
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.