aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-05-31 13:57:24 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-12 20:21:00 +0200
commit02f499b51bcf8a681fb2acfadc8c88c8e4dd4f9d (patch)
tree89855b8cce841ca33a28588e756a9cc6075eff90 /server/sonar-db-core/src
parentb99727fafb5e5f2f4a844b0eebd6b7637e87f382 (diff)
downloadsonarqube-02f499b51bcf8a681fb2acfadc8c88c8e4dd4f9d.tar.gz
sonarqube-02f499b51bcf8a681fb2acfadc8c88c8e4dd4f9d.zip
SONAR-10690 upgrade orchestrator to support editions
Diffstat (limited to 'server/sonar-db-core/src')
-rw-r--r--server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java b/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java
index b448b25fa87..25ec3a62482 100644
--- a/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java
+++ b/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java
@@ -26,10 +26,13 @@ import org.apache.commons.lang.StringUtils;
import java.io.File;
+import static com.sonar.orchestrator.container.Edition.COMMUNITY;
+
public class CreateDb {
public static void main(String[] args) {
OrchestratorBuilder builder = Orchestrator.builderEnv();
+ builder.setEdition(COMMUNITY);
String version = System.getProperty("sonar.runtimeVersion");
if (StringUtils.isEmpty(version)) {
File zip = FileLocation.byWildcardMavenFilename(new File("../../sonar-application/build/distributions"), "sonar-application-*.zip").getFile();