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

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!

0 votes


Accepted answer

Permanent link
 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

1 vote

Comments

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

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
× 563

Question asked: Aug 14 '12, 1:33 a.m.

Question was seen: 6,486 times

Last updated: Aug 14 '12, 2:05 p.m.

Confirmation Cancel Confirm