PR: MNG-122

cleanup formatting

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320812 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-13 17:21:00 +00:00
parent a9f4d9f1e5
commit b4cdb4a785
1 changed files with 27 additions and 12 deletions

View File

@ -196,8 +196,6 @@ public class DefaultMaven
{
BuildFailure buildFailure = rm.getBuildFailure( project );
line();
getLogger().info(
"Error for project: " + project.getName() + " (during " + buildFailure.getTask() + ")" );
@ -206,10 +204,16 @@ public class DefaultMaven
logDiagnostics( buildFailure.getCause() );
logTrace( buildFailure.getCause(), showErrors );
}
}
if ( !showErrors )
{
getLogger().info( "For more information, run Maven with the -e switch" );
line();
}
}
}
private ReactorManager doExecute( MavenExecutionRequest request, EventDispatcher dispatcher )
@ -630,6 +634,13 @@ public class DefaultMaven
logDiagnostics( e );
logTrace( e, showErrors );
if ( !showErrors )
{
getLogger().info( "For more information, run Maven with the -e switch" );
line();
}
}
protected void logFailure( BuildFailureException e, boolean showErrors )
@ -650,13 +661,20 @@ public class DefaultMaven
}
logTrace( e, showErrors );
if ( !showErrors )
{
getLogger().info( "For more information, run Maven with the -e switch" );
line();
}
}
private void logTrace( Throwable t, boolean showErrors )
{
if ( getLogger().isDebugEnabled() )
{
getLogger().info( "Trace", t );
getLogger().debug( "Trace", t );
line();
}
@ -666,10 +684,6 @@ public class DefaultMaven
line();
}
else
{
getLogger().info( "For more information, run Maven with the -e switch" );
}
}
private void logDiagnostics( Throwable t )
@ -703,6 +717,9 @@ public class DefaultMaven
{
if ( rm.hasMultipleProjects() && rm.executedMultipleProjects() )
{
getLogger().info( "" );
getLogger().info( "" );
// -------------------------
// Reactor Summary:
// -------------------------
@ -735,9 +752,7 @@ public class DefaultMaven
logReactorSummaryLine( project.getName(), "NOT BUILT" );
}
}
getLogger().info( "" );
getLogger().info( "" );
line();
}
}