I've searched these forums as well as the internet and could not find a clear answer. I'm executing an ant task. I would like the output to get put to the screen as well as a log file ... how can I do this?
You should use the ant task <record>
. See http://ant.apache.org/manual/Tasks/recorder.html.
In your ant file do something like:
...
<record name="logfile.txt" action="start" append="false" />
...
your ant code...
...
<record name="logfile.txt" action="stop"/>
The output from ant between the two record statements will be written to 'logfile.txt'
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