 <p>I'm not sure if I understand your problem correctly, but please check if solution mentioned in <a href="http://stackoverflow.com/questions/4042856/system-out-with-ant">this question</a> suits your needs.</p>