private void printMessage ( final String message , final PrintStream stream , final int priority ) { if ( useColor && priority == Project . MSG_ERR ) { stream . print ( ANSI_RED ) ; stream . print ( message ) ; stream . println ( ANSI_RESET ) ; } else { stream . println ( message ) ; } }
Prints a message to a PrintStream .