initialize( cliRequest ); cli( cliRequest ); logging( cliRequest ); version( cliRequest ); properties( cliRequest ); commands( cliRequest ); settings( cliRequest ); populateRequest( cliRequest ); encryption( cliRequest ); repository( cliRequest );
private void properties( CliRequest cliRequest ) { populateProperties( cliRequest.commandLine, cliRequest.systemProperties, cliRequest.userProperties ); } /**
static void populateProperties( CommandLine commandLine, Properties systemProperties, Properties userProperties ) { EnvironmentUtils.addEnvVars( systemProperties ); // ---------------------------------------------------------------------- // Options that are set on the command line become system properties // and therefore are set in the session properties. System properties // are most dominant. // ---------------------------------------------------------------------- if ( commandLine.hasOption( CLIManager.SET_SYSTEM_PROPERTY ) ) { String[] defStrs = commandLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY ); if ( defStrs != null ) { for ( int i = 0; i < defStrs.length; ++i ) { setCliProperty( defStrs[i], userProperties ); } } } systemProperties.putAll( System.getProperties() ); }
logFile = resolveFile( logFile, cliRequest.workingDirectory );
transferListener = getConsoleTransferListener(); transferListener = getBatchTransferListener(); userToolchainsFile = resolveFile( userToolchainsFile, workingDirectory ); File pom = resolveFile( new File( alternatePomFile ), workingDirectory ); if ( pom.isDirectory() )
userSettingsFile = resolveFile( userSettingsFile, cliRequest.workingDirectory ); globalSettingsFile = resolveFile( globalSettingsFile, cliRequest.workingDirectory ); + getSettingsLocation( settingsRequest.getGlobalSettingsSource(), settingsRequest.getGlobalSettingsFile() ) ); slf4jLogger.debug( "Reading user settings from " + getSettingsLocation( settingsRequest.getUserSettingsSource(), settingsRequest.getUserSettingsFile() ) );
File file = resolveFile( new File( jar ), cliRequest.workingDirectory );
initialize( cliRequest, printStream ); cli( cliRequest ); logging( cliRequest ); commands( cliRequest ); properties( cliRequest ); settings( cliRequest ); populateRequest( cliRequest ); encryption( cliRequest );
logFile = resolveFile( logFile, cliRequest.workingDirectory );
private void properties( CliRequest cliRequest ) { populateProperties( cliRequest.commandLine, cliRequest.systemProperties, cliRequest.userProperties ); }
static void populateProperties( CommandLine commandLine, Properties systemProperties, Properties userProperties ) { EnvironmentUtils.addEnvVars( systemProperties ); // ---------------------------------------------------------------------- // Options that are set on the command line become system properties // and therefore are set in the session properties. System properties // are most dominant. // ---------------------------------------------------------------------- if ( commandLine.hasOption( CLIManager.SET_SYSTEM_PROPERTY ) ) { String[] defStrs = commandLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY ); if ( defStrs != null ) { for ( int i = 0; i < defStrs.length; ++i ) { setCliProperty( defStrs[i], userProperties ); } } } systemProperties.putAll( System.getProperties() ); }
initialize( cliRequest, printStream ); cli( cliRequest ); logging( cliRequest ); commands( cliRequest ); properties( cliRequest ); settings( cliRequest ); populateRequest( cliRequest ); encryption( cliRequest );
logFile = resolveFile( logFile, cliRequest.workingDirectory );
private void properties( CliRequest cliRequest ) { populateProperties( cliRequest.commandLine, cliRequest.systemProperties, cliRequest.userProperties ); }
static void populateProperties( CommandLine commandLine, Properties systemProperties, Properties userProperties ) { EnvironmentUtils.addEnvVars( systemProperties ); // ---------------------------------------------------------------------- // Options that are set on the command line become system properties // and therefore are set in the session properties. System properties // are most dominant. // ---------------------------------------------------------------------- if ( commandLine.hasOption( CLIManager.SET_SYSTEM_PROPERTY ) ) { String[] defStrs = commandLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY ); if ( defStrs != null ) { for ( String defStr : defStrs ) { setCliProperty( defStr, userProperties ); } } } systemProperties.putAll( System.getProperties() ); // ---------------------------------------------------------------------- // Properties containing info about the currently running version of Maven // These override any corresponding properties set on the command line // ---------------------------------------------------------------------- Properties buildProperties = CLIReportingUtils.getBuildProperties(); String mavenVersion = buildProperties.getProperty( CLIReportingUtils.BUILD_VERSION_PROPERTY ); systemProperties.setProperty( "maven.version", mavenVersion ); String mavenBuildVersion = CLIReportingUtils.createMavenVersionString( buildProperties ); systemProperties.setProperty( "maven.build.version", mavenBuildVersion ); }
userToolchainsFile = resolveFile( userToolchainsFile, workingDirectory ); File pom = resolveFile( new File( alternatePomFile ), workingDirectory );
userToolchainsFile = resolveFile( userToolchainsFile, workingDirectory ); File pom = resolveFile( new File( alternatePomFile ), workingDirectory );
userSettingsFile = resolveFile( userSettingsFile, cliRequest.workingDirectory ); globalSettingsFile = resolveFile( globalSettingsFile, cliRequest.workingDirectory );
userSettingsFile = resolveFile( userSettingsFile, cliRequest.workingDirectory ); globalSettingsFile = resolveFile( globalSettingsFile, cliRequest.workingDirectory );