views:

85

answers:

1

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?

+2  A: 

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.

akr
This seems to be the answer. I'll try it next week using an script task.
dz