From 7a3e1ad74085cec6eba38dd177097c921273f26a Mon Sep 17 00:00:00 2001 From: Pavel Sorokin Date: Fri, 23 May 2014 16:08:25 +0200 Subject: [PATCH 1/3] MNG-5625: Provide a terse information about the used thread builder --- .../apache/maven/lifecycle/internal/LifecycleStarter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java index 7b6a5dea39..a3d0565f68 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java @@ -111,8 +111,12 @@ public class LifecycleStarter throw new BuilderNotFoundException( String.format( "The builder requested using id = %s cannot be found", builderId ) ); } - logger.info( "" ); - logger.info( String.format( "Using the builder %s with a thread count of %s", builder.getClass().getName(), session.getRequest().getDegreeOfConcurrency() ) ); + int degreeOfConcurrency = session.getRequest().getDegreeOfConcurrency(); + if ( degreeOfConcurrency >= 2 ) + { + logger.info( "" ); + logger.info( String.format( "Using the builder %s with a thread count of %s", builder.getClass().getSimpleName(), degreeOfConcurrency ) ); + } builder.build( session, reactorContext, projectBuilds, taskSegments, reactorBuildStatus ); } From 9468599ca3f5a242481242c9ed32060a9d65ee2d Mon Sep 17 00:00:00 2001 From: Pavel Sorokin Date: Sat, 24 May 2014 12:22:08 +0200 Subject: [PATCH 2/3] MNG-5625: Correct the wording of the log message --- .../org/apache/maven/lifecycle/internal/LifecycleStarter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java index a3d0565f68..5e67e4d23f 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java @@ -115,7 +115,7 @@ public class LifecycleStarter if ( degreeOfConcurrency >= 2 ) { logger.info( "" ); - logger.info( String.format( "Using the builder %s with a thread count of %s", builder.getClass().getSimpleName(), degreeOfConcurrency ) ); + logger.info( String.format( "Using the %s implemenation with a thread count of %d", builder.getClass().getSimpleName(), degreeOfConcurrency ) ); } builder.build( session, reactorContext, projectBuilds, taskSegments, reactorBuildStatus ); From bd27f7814fcc1b0d07a500f9dc9b14c89c3484e2 Mon Sep 17 00:00:00 2001 From: Pavel Sorokin Date: Sat, 24 May 2014 12:29:09 +0200 Subject: [PATCH 3/3] MNG-5625: Fix typo --- .../org/apache/maven/lifecycle/internal/LifecycleStarter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java index 5e67e4d23f..3b06c7207c 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java @@ -115,7 +115,7 @@ public class LifecycleStarter if ( degreeOfConcurrency >= 2 ) { logger.info( "" ); - logger.info( String.format( "Using the %s implemenation with a thread count of %d", builder.getClass().getSimpleName(), degreeOfConcurrency ) ); + logger.info( String.format( "Using the %s implementation with a thread count of %d", builder.getClass().getSimpleName(), degreeOfConcurrency ) ); } builder.build( session, reactorContext, projectBuilds, taskSegments, reactorBuildStatus );