@Test public void do_not_install_license_plugin_on_commercial_editions_after_7_2() { Version version = Version.create("7.2.0.10000"); prepareResolutionOfPackaging(Edition.ENTERPRISE, version, SQ_ZIP); SonarDistribution distribution = new SonarDistribution().setVersion(version.toString()); Server server = newInstaller().install(distribution); File downloadsDir = new File(server.getHome(), "extensions/downloads"); assertThat(downloadsDir.listFiles()).isEmpty(); }
public Server install(SonarDistribution distrib) { Packaging packaging = packagingResolver.resolve(distrib); File homeDir = unzip(packaging); if (!distrib.isKeepBundledPlugins()) { removeBundledPlugins(homeDir); } copyBundledPlugins(distrib.getBundledPluginLocations(), homeDir); copyExternalPlugins(packaging, distrib.getPluginLocations(), homeDir); copyJdbcDriver(homeDir); Properties properties = configureProperties(distrib); writePropertiesFile(properties, homeDir); String host = properties.getProperty(WEB_HOST_PROPERTY); String url = format("http: return new Server(locators, homeDir, packaging.getEdition(), packaging.getVersion(), HttpUrl.parse(url), Integer.parseInt(properties.getProperty(SEARCH_PORT_PROPERTY)), (String) properties.get(SONAR_CLUSTER_NODE_NAME)); }
ServerInstaller { public Server install(SonarDistribution distrib) { Packaging packaging = packagingResolver.resolve(distrib); File homeDir = unzip(packaging); if (!distrib.isKeepBundledPlugins()) { removeBundledPlugins(homeDir); } copyBundledPlugins(distrib.getBundledPluginLocations(), homeDir); copyExternalPlugins(packaging, distrib.getPluginLocations(), homeDir); copyJdbcDriver(homeDir); Properties properties = configureProperties(distrib); writePropertiesFile(properties, homeDir); String host = properties.getProperty(WEB_HOST_PROPERTY); String url = format("http: return new Server(locators, homeDir, packaging.getEdition(), packaging.getVersion(), HttpUrl.parse(url), Integer.parseInt(properties.getProperty(SEARCH_PORT_PROPERTY)), (String) properties.get(SONAR_CLUSTER_NODE_NAME)); } }
ServerInstaller { public Server install(SonarDistribution distrib) { Packaging packaging = packagingResolver.resolve(distrib); File homeDir = unzip(packaging); if (!distrib.isKeepBundledPlugins()) { removeBundledPlugins(homeDir); } copyBundledPlugins(distrib.getBundledPluginLocations(), homeDir); copyExternalPlugins(packaging, distrib.getPluginLocations(), homeDir); copyJdbcDriver(homeDir); Properties properties = configureProperties(distrib); writePropertiesFile(properties, homeDir); String host = properties.getProperty(WEB_HOST_PROPERTY); String url = format("http: return new Server(locators, homeDir, packaging.getEdition(), packaging.getVersion(), HttpUrl.parse(url), Integer.parseInt(properties.getProperty(SEARCH_PORT_PROPERTY)), (String) properties.get(SONAR_CLUSTER_NODE_NAME)); } ServerInstaller(PackagingResolver packagingResolver, Configuration configuration, Locators locators, DatabaseClient databaseClient); }
ServerInstaller { public Server install(SonarDistribution distrib) { Packaging packaging = packagingResolver.resolve(distrib); File homeDir = unzip(packaging); if (!distrib.isKeepBundledPlugins()) { removeBundledPlugins(homeDir); } copyBundledPlugins(distrib.getBundledPluginLocations(), homeDir); copyExternalPlugins(packaging, distrib.getPluginLocations(), homeDir); copyJdbcDriver(homeDir); Properties properties = configureProperties(distrib); writePropertiesFile(properties, homeDir); String host = properties.getProperty(WEB_HOST_PROPERTY); String url = format("http: return new Server(locators, homeDir, packaging.getEdition(), packaging.getVersion(), HttpUrl.parse(url), Integer.parseInt(properties.getProperty(SEARCH_PORT_PROPERTY)), (String) properties.get(SONAR_CLUSTER_NODE_NAME)); } ServerInstaller(PackagingResolver packagingResolver, Configuration configuration, Locators locators, DatabaseClient databaseClient); Server install(SonarDistribution distrib); }
ServerInstaller { public Server install(SonarDistribution distrib) { Packaging packaging = packagingResolver.resolve(distrib); File homeDir = unzip(packaging); if (!distrib.isKeepBundledPlugins()) { removeBundledPlugins(homeDir); } copyBundledPlugins(distrib.getBundledPluginLocations(), homeDir); copyExternalPlugins(packaging, distrib.getPluginLocations(), homeDir); copyJdbcDriver(homeDir); Properties properties = configureProperties(distrib); writePropertiesFile(properties, homeDir); String host = properties.getProperty(WEB_HOST_PROPERTY); String url = format("http: return new Server(locators, homeDir, packaging.getEdition(), packaging.getVersion(), HttpUrl.parse(url), Integer.parseInt(properties.getProperty(SEARCH_PORT_PROPERTY)), (String) properties.get(SONAR_CLUSTER_NODE_NAME)); } ServerInstaller(PackagingResolver packagingResolver, Configuration configuration, Locators locators, DatabaseClient databaseClient); Server install(SonarDistribution distrib);  }