Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture Ant output

Tags:

ant

sunspot

Can anyone suggest to me the best way to capture the output from an Ant command?

I'm writing some routing tests for sun spot devices. The command itself returns network statistics. I'm trying to write something which will dump all these results into a more visual application.

I'm on Windows Vista.

like image 377
Steve Avatar asked May 10 '09 11:05

Steve


1 Answers

you could simply use the ant recorder task:

<record name="build.log"> </record>

this has the advantage of having the output written both to the screen and to the log file, which isn't the case when doing output redirection ant debug > build.log or calling ant with the -logfile option.

like image 109
rony l Avatar answered Sep 23 '22 01:09

rony l