dz.
dz.

Reputation: 1326

How to enable verbose output using the ant task and inheritall="false"

When starting a build in verbose mode (ant -v) the verbose mode is not propagated to the "subants". The ant task looks like this:

<ant antfile="${buildproject}" inheritall="false" target="${target}" output="${output.file}">           
  <property name="repo.global" value="/repo"/>
  <property name="proj.property.prefix" value="${property_prefix}"/>        
</ant>

We don't want to propagate all properties because we try to remove an old build system. Any ideas how to preserve the "verbose" output without using the exec task?

Upvotes: 1

Views: 4329

Answers (2)

stolsvik
stolsvik

Reputation: 5341

If you don't want to create your own task with all that hassle, there is a embedded-javascript-snippet answer in this SO-question.

Upvotes: 0

Andreas Kraft
Andreas Kraft

Reputation: 3843

I had to deal with something similar just last month. You probably need to define you own task to change the loglevel in a script. The following blog entry (http://codefeed.com/blog/?p=82) helped a lot. The author provides all the necessary source code.

Upvotes: 2

Related Questions