org.apache.maven.shared.utils.logging.MessageUtils Java Examples

The following examples show how to use org.apache.maven.shared.utils.logging.MessageUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractJKubeMojo.java    From jkube with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * Determine whether to enable colorized log messages
 * @return true if log statements should be colorized
 */
private boolean useColorForLogging() {
    return useColor && MessageUtils.isColorEnabled()
            && !(EnvUtil.isWindows() && !MavenUtil.isMaven350OrLater(session));
}
 
Example #2
Source File: AbstractDockerMojo.java    From jkube with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * Determine whether to enable colorized log messages
 * @return true if log statements should be colorized
 */
protected boolean useColorForLogging() {
    return useColor && MessageUtils.isColorEnabled()
            && !(EnvUtil.isWindows() && !MavenUtil.isMaven350OrLater(session));
}
 
Example #3
Source File: AbstractDockerMojo.java    From docker-maven-plugin with Apache License 2.0 4 votes vote down vote up
/**
 * Determine whether to enable colorized log messages
 * @return true if log statements should be colorized
 */
private boolean useColorForLogging() {
    return useColor && MessageUtils.isColorEnabled()
            && !(EnvUtil.isWindows() && !EnvUtil.isMaven350OrLater(session));
}