mirror of https://github.com/apache/maven.git
[MNG-6353] Upgrade maven-shared-utils to 3.2.1
This commit is contained in:
parent
40cf506220
commit
24b8820f08
|
@ -576,10 +576,11 @@ public class MavenCli
|
||||||
{
|
{
|
||||||
MessageBuilder buff = MessageUtils.buffer();
|
MessageBuilder buff = MessageUtils.buffer();
|
||||||
buff.a( "Message styles: " );
|
buff.a( "Message styles: " );
|
||||||
buff.debug( "debug" ).a( ' ' );
|
buff.a( MessageUtils.level().debug( "debug" ) ).a( ' ' );
|
||||||
buff.info( "info" ).a( ' ' );
|
buff.a( MessageUtils.level().info( "info" ) ).a( ' ' );
|
||||||
buff.warning( "warning" ).a( ' ' );
|
buff.a( MessageUtils.level().warning( "warning" ) ).a( ' ' );
|
||||||
buff.error( "error" ).a( ' ' );
|
buff.a( MessageUtils.level().error( "error" ) ).a( ' ' );
|
||||||
|
|
||||||
buff.success( "success" ).a( ' ' );
|
buff.success( "success" ).a( ' ' );
|
||||||
buff.failure( "failure" ).a( ' ' );
|
buff.failure( "failure" ).a( ' ' );
|
||||||
buff.strong( "strong" ).a( ' ' );
|
buff.strong( "strong" ).a( ' ' );
|
||||||
|
|
|
@ -19,6 +19,7 @@ package org.slf4j.impl;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import static org.apache.maven.shared.utils.logging.MessageUtils.level;
|
||||||
import static org.apache.maven.shared.utils.logging.MessageUtils.buffer;
|
import static org.apache.maven.shared.utils.logging.MessageUtils.buffer;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
|
@ -42,16 +43,16 @@ public class MavenSimpleLogger
|
||||||
switch ( level )
|
switch ( level )
|
||||||
{
|
{
|
||||||
case LOG_LEVEL_TRACE:
|
case LOG_LEVEL_TRACE:
|
||||||
return buffer().debug( "TRACE" ).toString();
|
return level().debug( "TRACE" ).toString();
|
||||||
case LOG_LEVEL_DEBUG:
|
case LOG_LEVEL_DEBUG:
|
||||||
return buffer().debug( "DEBUG" ).toString();
|
return level().debug( "DEBUG" ).toString();
|
||||||
case LOG_LEVEL_INFO:
|
case LOG_LEVEL_INFO:
|
||||||
return buffer().info( "INFO" ).toString();
|
return level().info( "INFO" ).toString();
|
||||||
case LOG_LEVEL_WARN:
|
case LOG_LEVEL_WARN:
|
||||||
return buffer().warning( "WARNING" ).toString();
|
return level().warning( "WARNING" ).toString();
|
||||||
case LOG_LEVEL_ERROR:
|
case LOG_LEVEL_ERROR:
|
||||||
default:
|
default:
|
||||||
return buffer().error( "ERROR" ).toString();
|
return level().error( "ERROR" ).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -287,7 +287,7 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
<artifactId>maven-shared-utils</artifactId>
|
<artifactId>maven-shared-utils</artifactId>
|
||||||
<version>3.1.0</version>
|
<version>3.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.fusesource.jansi</groupId>
|
<groupId>org.fusesource.jansi</groupId>
|
||||||
|
|
Loading…
Reference in New Issue