Saving log results to file in output directory

Post here questions and problems related to editing and publishing DITA content.
matt_k
Posts: 46
Joined: Mon Aug 17, 2020 7:16 pm

Saving log results to file in output directory

Post by matt_k »

Hi there
Is it possible to set a parameter to save the log results to the output directory when running an ANT transformation scenario?
Many thanks
Matt
Radu
Posts: 9470
Joined: Fri Jul 09, 2004 5:18 pm

Re: Saving log results to file in output directory

Post by Radu »

HI Matt,
Yes, ANT has support for this.
If you edit the transformation scenario, in the "Additional Ant Arguments" field you can set "-logfile /path/to/build_log.txt" then save the scenario and publish.
https://ant.apache.org/manual/listeners.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply