private void version( CliRequest cliRequest ) { if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) ) { System.out.println( CLIReportingUtils.showVersion() ); } }
System.out.println( CLIReportingUtils.showVersion() ); throw new ExitException( 0 );
private void version( CliRequest cliRequest ) { if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) ) { System.out.println( CLIReportingUtils.showVersion() ); } }
private void version( CliRequest cliRequest ) { if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) ) { System.out.println( CLIReportingUtils.showVersion() ); } }
private void version( CliRequest cliRequest ) { if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) ) { System.out.print( CLIReportingUtils.showVersion() ); } }
private void commands( CliRequest cliRequest ) { if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) ) { CLIReportingUtils.showVersion( cliRequest.stdout ); } if ( cliRequest.showErrors ) { cliRequest.logger.info( "Error stacktraces are turned on." ); } // // TODO: move checksum policies to // if ( MavenExecutionRequest.CHECKSUM_POLICY_WARN.equals( cliRequest.request.getGlobalChecksumPolicy() ) ) { cliRequest.logger.info( "Disabling strict checksum verification on all artifact downloads." ); } else if ( MavenExecutionRequest.CHECKSUM_POLICY_FAIL.equals( cliRequest.request.getGlobalChecksumPolicy() ) ) { cliRequest.logger.info( "Enabling strict checksum verification on all artifact downloads." ); } }
private void commands( CliRequest cliRequest ) { if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION ) ) { CLIReportingUtils.showVersion( cliRequest.stdout ); } if ( cliRequest.showErrors ) { cliRequest.logger.info( "Error stacktraces are turned on." ); } // // TODO: move checksum policies to // if ( MavenExecutionRequest.CHECKSUM_POLICY_WARN.equals( cliRequest.request.getGlobalChecksumPolicy() ) ) { cliRequest.logger.info( "Disabling strict checksum verification on all artifact downloads." ); } else if ( MavenExecutionRequest.CHECKSUM_POLICY_FAIL.equals( cliRequest.request.getGlobalChecksumPolicy() ) ) { cliRequest.logger.info( "Enabling strict checksum verification on all artifact downloads." ); } }
private void cli( CliRequest cliRequest ) throws Exception { CLIManager cliManager = new CLIManager(); try { cliRequest.commandLine = cliManager.parse( cliRequest.args ); } catch ( ParseException e ) { cliRequest.stderr.println( "Unable to parse command line options: " + e.getMessage() ); cliManager.displayHelp( cliRequest.stdout ); throw e; } // TODO: these should be moved out of here. Wrong place. // if ( cliRequest.commandLine.hasOption( CLIManager.HELP ) ) { cliManager.displayHelp( cliRequest.stdout ); throw new MavenCli.ExitException( 0 ); } if ( cliRequest.commandLine.hasOption( CLIManager.VERSION ) ) { CLIReportingUtils.showVersion( cliRequest.stdout ); throw new MavenCli.ExitException( 0 ); } }
private void cli( CliRequest cliRequest ) throws Exception { CLIManager cliManager = new CLIManager(); try { cliRequest.commandLine = cliManager.parse( cliRequest.args ); } catch ( ParseException e ) { cliRequest.stderr.println( "Unable to parse command line options: " + e.getMessage() ); cliManager.displayHelp( cliRequest.stdout ); throw e; } // TODO: these should be moved out of here. Wrong place. // if ( cliRequest.commandLine.hasOption( CLIManager.HELP ) ) { cliManager.displayHelp( cliRequest.stdout ); throw new MavenCli.ExitException( 0 ); } if ( cliRequest.commandLine.hasOption( CLIManager.VERSION ) ) { CLIReportingUtils.showVersion( cliRequest.stdout ); throw new MavenCli.ExitException( 0 ); } }
System.out.println( CLIReportingUtils.showVersion() ); throw new ExitException( 0 );
private void cli( CliRequest cliRequest ) throws Exception { // // Parsing errors can happen during the processing of the arguments and we prefer not having to check if the logger is null // and construct this so we can use an SLF4J logger everywhere. // slf4jLogger = new Slf4jStdoutLogger(); CLIManager cliManager = new CLIManager(); try { cliRequest.commandLine = cliManager.parse( cliRequest.args ); } catch ( ParseException e ) { System.err.println( "Unable to parse command line options: " + e.getMessage() ); cliManager.displayHelp( System.out ); throw e; } if ( cliRequest.commandLine.hasOption( CLIManager.HELP ) ) { cliManager.displayHelp( System.out ); throw new ExitException( 0 ); } if ( cliRequest.commandLine.hasOption( CLIManager.VERSION ) ) { System.out.println( CLIReportingUtils.showVersion() ); throw new ExitException( 0 ); } }
private void cli( CliRequest cliRequest ) throws Exception { // // Parsing errors can happen during the processing of the arguments and we prefer not having to check if the logger is null // and construct this so we can use an SLF4J logger everywhere. // slf4jLogger = new Slf4jStdoutLogger(); CLIManager cliManager = new CLIManager(); try { cliRequest.commandLine = cliManager.parse( cliRequest.args ); } catch ( ParseException e ) { System.err.println( "Unable to parse command line options: " + e.getMessage() ); cliManager.displayHelp( System.out ); throw e; } if ( cliRequest.commandLine.hasOption( CLIManager.HELP ) ) { cliManager.displayHelp( System.out ); throw new ExitException( 0 ); } if ( cliRequest.commandLine.hasOption( CLIManager.VERSION ) ) { System.out.println( CLIReportingUtils.showVersion() ); throw new ExitException( 0 ); } }