o Tweaked logging to ensure version info comes out first

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1050715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-12-18 21:00:22 +00:00
parent c40029459a
commit a670011864
1 changed files with 5 additions and 1 deletions

View File

@ -186,6 +186,7 @@ public class MavenCli
// Need to process cli options first to get possible logging options
cli( cliRequest );
logging( cliRequest );
version( cliRequest );
properties( cliRequest );
container( cliRequest );
commands( cliRequest );
@ -322,13 +323,16 @@ public class MavenCli
}
}
private void commands( CliRequest cliRequest )
private void version( CliRequest cliRequest )
{
if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) )
{
CLIReportingUtils.showVersion( System.out );
}
}
private void commands( CliRequest cliRequest )
{
if ( cliRequest.showErrors )
{
logger.info( "Error stacktraces are turned on." );