tags:

views:

19

answers:

1

Depending on the build exit status, i would like to change the background color to green or red.

How do i achieve this with Apache Ant and windows?

A: 

Use the color command:

http://www.computerhope.com/color.htm

and execute it from an Ant script using exec:

<exec dir="." executable="color" os="Windows NT">
  <arg line="1"/>
</exec>
Jon
The color command indeed can change the background. But how do i integrate that into the build return result? I.e. BUILD SUCCESSFUL, then i can run 'color 2F'
JavaRocky
Hmm, I thought that would be the easy part, take a look at the Sound task in Ant, you should be able to hack that, will take a look myself also...
Jon