Take the 2-minute tour ×

I'm playing with ant and JUnit4 in a terminal emulator, not in an IDE like Eclipse.

Is there an ant-native method of getting colorised test results? A google search led me to this python script; I'd prefer to utilize 'pure' ant if I can.

For example, when I run my tests with ant runtests, I'd like to display the FAILED tests red, the PASSED tests green, etc.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The AnsiColorLogger described in the Ant manual should do exactly what you want.

share|improve this answer
Set the ANT_ARGS environmental variable to automate the -logger argument; see this answer and links. –  simont Jun 26 '12 at 23:36
add comment

Your Answer


