[MSHARED-562] override default colors with java properties #13

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
@seblm

seblm commented Jul 1, 2016

This pull request allow a user to redefine default maven colors with some java properties.

For example one can edit his ~/.mavenrc with the following:

MAVEN_OPTS="-Dstyle.info=cyan -Dstyle.warning=bold,yellow"

Possible values are (case insensitive):

  • colors
    • BLACK
    • RED
    • GREEN
    • YELLOW
    • BLUE
    • MAGENTA
    • CYAN
    • WHITE
    • DEFAULT
  • attributes
    • BOLD

Possible keys are (case sensitive - always lowercase):

  • style.debug
  • style.info
  • style.warning
  • style.error
  • style.success
  • style.failure
  • style.strong
  • style.mojo
  • style.project

This list is based on MessageBuffer.java API and could evolve until final release.

Additional note about tests: as configuration is handled into one single enum thus testing with java property is merely impossible. Enum Style is already loaded when test is starting.

@asfgit asfgit closed this in c2d25d4 Jul 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment