How to execute ant using java and captured the output?
Posted
by Iso
on Stack Overflow
See other posts from Stack Overflow
or by Iso
Published on 2010-05-24T06:27:08Z
Indexed on
2010/05/24
6:31 UTC
Read the original article
Hit count: 219
Hi,
I have an ant build file that contains JUnit test suite that I would like to execute. Currently I just right click and run the build file from Eclipse.
I want to write a java code that can execute the ant build file automatically. So I just run the code and ant will be executed.
Second is I want to capture the test result. Currently the result is based on JUnit HTML report. I want to make my own simple test report. I read there is JUnitResultFormatter but I can't find the instructional step by step how to use it. Can anyone point me the reference?
Thanks in advance.
© Stack Overflow or respective owner