From 7a3e1ad74085cec6eba38dd177097c921273f26a Mon Sep 17 00:00:00 2001 From: Pavel Sorokin Date: Fri, 23 May 2014 16:08:25 +0200 Subject: [PATCH] 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 ); }