protected void upgradeNexusVersion() throws IOException { final String currentVersion = checkNotNull( applicationStatusSource.getSystemStatus().getVersion() ); final String previousVersion = getConfiguration().getNexusVersion(); if ( currentVersion.equals( previousVersion ) ) { setInstanceUpgraded( false ); } else { setInstanceUpgraded( true ); getConfiguration().setNexusVersion( currentVersion ); storeConfiguration(); } }
value.setNexusVersion( configuration.getNexusVersion() ); value.setGlobalConnectionSettings( upgradeCRemoteConnectionSettings( configuration.getGlobalConnectionSettings() ) ); value.setRemoteProxySettings( upgradeCRemoteProxySettings( configuration.getRemoteProxySettings() ) );
configuration.setNexusVersion( getTrimmedValue( parser.nextText() ) );