I am using the ant (1.8.2) exec task to start a child process. I need the output of the child process to be shown as part of the normal ant console output, but also be captured in a file.
You need the redirector
Since Ant 1.6.3 it has an option called alwayslog
.
Use it like this:
<exec executable="mycommand">
<redirector output="myfile.txt" alwayslog="true"/>
</exec>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With