This is more of an OS problem than a java problem. I presume given you are using the output symbol you are on linux/unix? Try using tee, something like
ant myscript | tee log.file