I don't think I like the defaults either and nothing related to the colors seem
be documented in the user guide (not even the command line option). Since I
wanted to change the defaults too, I dug into the source to see what my options
were.
There is a --no-color command line option to turn off all colors.
You can set up sytem properties to map the colors to something else.
Set a system property of org.gradle.color.<type>=<color>
<type> is one of StyledTextOutput.Style:
normal
header
userinput
identifier
description
progressstatus
failure
info
error
<color> is one of Ansi.Color:
BLACK
RED
GREEN
YELLOW
BLUE
MAGENTA
CYAN
WHITE
DEFAULT
It looks like the style type must be all lower case and the color must be all
upper case.
Setting these every time as -D options on the command line works but seems
unusable. A better option is probably to put calls to System.setProperty in
your init.gradle file (in USER_HOME/.gradle). It would be perhaps nicer if
these could be set in the USER_HOME/gradle.properties file, but I don't think
this works currently.
Not all of the output seems to map to the types I would expect. For example,
the list of task names listed from a -t are styled as "userinput", when I was
expecting them to be "identifier". For now, you'll just have to play with it
to find out which one influences the output you are trying to impact. The
UP-TO-DATE messages you mentioned are styled using "progressstatus", so you
might get what you want by making an init.gradle containing:
System.setProperty('org.gradle.color.progressstatus', 'BLACK')
On Oct 2, 2010, at 9:31 AM, Russel Winder wrote:
> We had a short discussion about console output colouring and emboldening
> a short time back. The current line went from roman to bold to coloured
> back to roman, but is now bold. Bold is fine for me -- actually I quite
> like it.
>
> What I have discovered though is that UP-TO-DATE when printed is some
> light brown colour that is invisible in my theme. Can this be made
> italic instead? Or at least something that does not depend on a
> specific user theme being in place for the text to be visible.
>
> I am using HEAD of 2010-10-01
>
> --
> Russel.
> =============================================================================
> Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
> 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
> London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
--
Steve Appling
Automated Logic Research Team
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email