Reputation: 1326
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
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
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