It's all about the answers!

Ask a question

RTC build how to execute more build.xml

Jia Jia Li (8057151192) | asked Aug 14 '12, 1:33 a.m.
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?


Accepted answer

permanent link
Spencer Murata (2.3k115971) | answered Aug 14 '12, 8:13 a.m.
 I would make a master build.xml file that would subsequently call the child Ant scripts.  More information can be found here:

Ralph Schoon selected this answer as the correct answer

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?

David Olsen commented Aug 14 '12, 2:05 p.m.

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

Register or to post your answer.