diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-05-31 13:57:24 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-12 20:21:00 +0200 |
commit | 02f499b51bcf8a681fb2acfadc8c88c8e4dd4f9d (patch) | |
tree | 89855b8cce841ca33a28588e756a9cc6075eff90 /sonar-ws-generator | |
parent | b99727fafb5e5f2f4a844b0eebd6b7637e87f382 (diff) | |
download | sonarqube-02f499b51bcf8a681fb2acfadc8c88c8e4dd4f9d.tar.gz sonarqube-02f499b51bcf8a681fb2acfadc8c88c8e4dd4f9d.zip |
SONAR-10690 upgrade orchestrator to support editions
Diffstat (limited to 'sonar-ws-generator')
-rw-r--r-- | sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java index b9ccb41c9bd..7f9748a1f7c 100644 --- a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java +++ b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java @@ -26,6 +26,8 @@ import com.sonar.orchestrator.http.HttpResponse; import com.sonar.orchestrator.locator.FileLocation; import java.io.File; +import static com.sonar.orchestrator.container.Edition.COMMUNITY; + public class ApiDefinitionDownloader { public static void main(String[] args) { @@ -34,6 +36,7 @@ public class ApiDefinitionDownloader { public static String downloadApiDefinition() { OrchestratorBuilder builder = Orchestrator.builderEnv(); + builder.setEdition(COMMUNITY); builder.setZipFile(FileLocation.byWildcardMavenFilename(new File("../sonar-application/build/distributions"), "sonar-application-*.zip").getFile()) .setOrchestratorProperty("orchestrator.workspaceDir", "build"); Orchestrator orchestrator = builder |