Hi Gary,

Didn't mean to provoke anyone ;)

Note that the patch only changes the text "BUILD FAILED", and as such doesn't necessarily need to be 'read'. It serves more as an immediate visual indication of something broken.

As someone who typically has 3 or more console windows open, and routinely runs nant scripts hundreds of times a day, I find that I sometimes don't notice that the output says 'BUILD FAILED' instead of 'BUILD SUCCEEDED', the text is just so much green on black. The minute the 'BUILD FAILED' is in red, it becomes almost impossible to ignore.

Note also that my patch only works when building in NET2.0. The Console.ForegroundColor property is not available in 1.1. This is by no means intended as a complete solution... it's just something I found helpful and thought others might find useful. Additionally, we could always decide on a background/foreground combination which is 'universally' acceptable, and change both background and foreground. This would be more jarring, but that's what we're after in any case....

Thanks,
Shmarya

Gary Feldman wrote:
Shmarya Rubenstein wrote:
  
Hi all,Y

I have attached a patch that sets the text "BUILD FAILED" to be red in 
the console output. It makes it easier to see that something went wrong...
    
Please don't do this, unless you're willing to go to the trouble of 
identifying the background color, choosing the foreground color 
appropriately, and providing the user (who may not have write permission 
on the NAnt file) to customize it.  Red on black is difficult to read, 
and, with the wrong font, even red on white is difficult.  Changing the 
background only would be easier to spot, but garish on an overall black 
background.  A quick read of the documentation suggests that the Console 
object doesn't have enough colors defined to do a good job.  Finally, 
this can interact poorly with people connecting over telnet/rsh/ssh 
connections.

Besides, the original question here was about the email, not the console 
output, and asked to get away from the red, not add more red.

Gary




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

  

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to