o Tweaked logging

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@805599 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-18 22:04:28 +00:00
parent 28c7ccf1af
commit 2b38ff01b2
1 changed files with 13 additions and 3 deletions

View File

@ -94,9 +94,11 @@ class LifecycleEventLogger
@Override
public void sessionStarted( LifecycleEvent event )
{
if ( logger.isInfoEnabled() )
if ( logger.isInfoEnabled() && event.getSession().getProjects().size() > 1 )
{
logger.info( "Build Order:" );
logger.info( chars( '-', LINE_LENGTH ) );
logger.info( "Reactor Build Order:" );
logger.info( "" );
@ -130,8 +132,10 @@ class LifecycleEventLogger
private void logReactorSummary( MavenSession session )
{
logger.info( chars( '-', LINE_LENGTH ) );
logger.info( "Reactor Summary:" );
logger.info( chars( '-', LINE_LENGTH ) );
logger.info( "" );
MavenExecutionResult result = session.getResult();
@ -211,8 +215,12 @@ class LifecycleEventLogger
{
if ( logger.isInfoEnabled() )
{
logger.info( chars( '-', LINE_LENGTH ) );
logger.info( "Skipping " + event.getProject().getName() );
logger.info( "This project has been banned from the build due to previous failures." );
logger.info( chars( '-', LINE_LENGTH ) );
}
}
@ -222,7 +230,9 @@ class LifecycleEventLogger
if ( logger.isInfoEnabled() )
{
logger.info( chars( '-', LINE_LENGTH ) );
logger.info( "Building " + event.getProject().getName() );
logger.info( chars( '-', LINE_LENGTH ) );
}
}