Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clover and Ant with multiple build.xml


I have a rather complex build. There is a top level build.xml and there are many sub projects, each having its own build.xml.

When I want to instrument the build, I only want to make changes in the top build.xml, but the sub-projects should also get instrumented.

However, when i try to instrument the code, it only instruments the code which is part of top level build.xml and not the sub-projects code, as they are in different build.xml. I don't want to set the inheritAll= true, as each projects has over-ridden the parameters.

What is the parameter I need to pass to the sub-project's build.xml in order to instrument.

Thanks for your help in advance.


3 answers

If I understand correctly your question:

Simpler approach: Use a properties file in your root directory and load it in each build.xml. In this way, you only modify in one place (your properties file) and you will keep build without inheritAll. Of course, each sub-project should know to instrument the build based on the values you have in your properties file.

Normally, I would extract the common parts of the build in one single ant file to be included and executed by all the others.

Hi Radu,

What I need is when I just run from top-level xml saying with.clover <target> which would compile all the top level files as well as sub-project files. I cannot enforce the sub-project leve guys to write some targets. The only xml accessible to me is the top level build.xml.

I don't why, when I change inheritAll to true, the subproject files are getting instrumented.

But when it is false, I can't do that.

So I was wondering is there some property which needs to be set to get instrumentation of sub-projects.



Actually, you do not need inheritAll, but only inheritRefs. Will this suit you ?

I tried your suggestion, but this not work.....

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

171 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you